Photon 0.0.2 Simple Open Source 2D Game API |
LogLog class for photon, Log passes all messages to any attached LogSinks, which can then take care of any output which is desired. Summary
addSink
Adds a sink to the Log, sinks are given access to all messages passed into the log. Parameters
|
Log constructor, initializes log singleton.
Log()
Log destructor, destroys log singleton.
~Log()
Adds a sink to the Log, sinks are given access to all messages passed into the log.
void addSink( LogSinkPtr sink )
Remove a sink from the log by name.
void removeSink( const std:: string & sinkName )
Remove all sinks from log.
void removeSinks()
Accesses stream, any messages passed into note are given to associated LogSinks with a LogLevel of LOG_NOTE.
std::ostream& note()
Accesses stream, any messages passed into verbose are given to associated LogSinks with a LogLevel of LOG_VERBOSE.
std::ostream& verbose()
Accesses stream, any messages passed into warning are given to associated LogSinks with a LogLevel of LOG_WARNING.
std::ostream& warning()
Accesses stream, any messages passed into error are given to associated LogSinks with a LogLevel of LOG_ERROR.
std::ostream& error()
Accesses stream, any messages passed into critical are given to associated LogSinks with a LogLevel of LOG_CRITICAL.
std::ostream& critical()
Flushes the log, is generally not required.
void flush()