Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New access method via qxtLog macro #1

Open
mschnee opened this issue Jan 24, 2012 · 0 comments
Open

New access method via qxtLog macro #1

mschnee opened this issue Jan 24, 2012 · 0 comments
Assignees

Comments

@mschnee
Copy link
Owner

mschnee commented Jan 24, 2012

Old code follows the form:

qxtLog->info() << "Some Message" << "Some other message";
qxtLog->info("A single message");

We're moving away from the "Log Level" syntax and towards a "Log Target" syntax:

qxtLog("info") << "Some Message" << "Some other Message";
qxtLog("info","Some Message");
  1. qxtLog is currently a macro that resolves to a pointer to the singleton. It should instead resolve to a reference to the singleton.
  2. Implement the necessary operators: operator()(), operator->(), and the necessary overrides to directly log or to return a QxtLogStream.
@ghost ghost assigned mschnee Jan 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant