Skip to content

LOG macro dispatch incompatible with LOG(logger) usage. #1

@halfflat

Description

@halfflat

Contrary to the (minimal) documentation, LOG("foo") << "bar" will not send a message to facility 'foo'; the dispatching LOG macro will expand into an expression that will not compile.

Use an overloaded function to disambiguate between LOG(n) for an integer log level n, referring to the default log facility, and LOG(fac) for a facility fac referenced by const char* name or object, which should log a record with implicit level zero.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions