#include <vos/corelibs/vos/log.hh>
The main user interface to this class is the macro LOG(), but you can set some global options using the static methods in this class, and you can set properties of individual channels using this class.
Definition at line 104 of file log.hh.
|
Construct a new logging channel. Usually you don't need to call this, as it will be created automatically when a new channel is refered to.
For internal use only.
Definition at line 46 of file log.cc. Referenced by log(), and readEnvironment(). |
|
Construct a new logging channel. Usually you don't need to call this, as it will be created automatically when a new channel is refered to.
For internal use only.
|
|
Add a new channel to the channel table.
Definition at line 90 of file log.cc. Referenced by readEnvironment(). |
|
Close all channels.
|
|
Returns the default log level for new log channels.
|
|
Get the log level for this channel.
|
|
Obtain the log object for a particular channel.
|
|
Obtain the log object for a particular channel.
Definition at line 97 of file log.cc. Referenced by readEnvironment(). |
|
Returns the master log level.
|
|
|
|
Log to a particular channel, which will be created if it does not exist. You probably want to be using LOG(), however.
For internal use only.
|
|
Write a line to the logfile. You probably want to be using LOG(), however.
For internal use only.
Definition at line 54 of file log.cc. Referenced by log(). |
|
Read the environment variable VOS_LOG and set/create the appropriate log channels to the specified levels.
Definition at line 108 of file log.cc. Referenced by getLog(). |
|
Sets the default log level for new log channels.
Definition at line 92 of file log.cc. Referenced by readEnvironment(). |
|
Sets the default output stream for new log objects. The starting default output stream is "clog" (which is generally an alias for stderr.)
|
|
Set the log level for this channel. Log levels for channels can also be set with an environment variable VOS_LOG, which takes the format channel:level,channel:level, etc. -- channel is the name of a log channel, and level is the integer level for that channel.
Definition at line 67 of file log.cc. Referenced by readEnvironment(). |
|
Sets the master log level for all log objects. The master log level applies to all logging statements, regardless of channel name.
Definition at line 94 of file log.cc. Referenced by readEnvironment(). |
|
Definition at line 38 of file log.cc. Referenced by log(). |
|
A level that applies to all channels. (default is 10) Definition at line 43 of file log.cc. Referenced by getMasterLevel(), and setMasterLevel(). |