![]() |
User Manual, Developers Guide and API Documentation |
![]() |
Classes | |
| class | CerrOutput |
| class | ConsoleFormat |
| class | CoutOutput |
| class | DelimiterFormat |
| Formats messages, elements are separated by a delimiter. More... | |
| class | FileOutput |
| class | FormatStrategy |
| class | Logger |
| Writes Message to logger::Master. More... | |
| class | Master |
| Base class for logging in WNS. More... | |
| class | Message |
| Messages are used in conjunction with Logger instead of simple "cout-Logging". More... | |
| class | OutputStrategy |
| struct | RawMessage |
| class | SQLiteFormat |
| Format message to be imported into SQLite. More... | |
| class | XMLFormat |
| Formats messages in XML. More... | |
Typedefs | |
| typedef PyConfigViewCreator < FormatStrategy, FormatStrategy > | FormatStrategyCreator |
| typedef StaticFactory < FormatStrategyCreator > | FormatStrategyFactory |
| typedef Creator < OutputStrategy, OutputStrategy > | OutputStrategyCreator |
| typedef StaticFactory < OutputStrategyCreator > | OutputStrategyFactory |
Enumerations | |
| enum | Level { OFF = 0, QUIET = 1, NORMAL = 2, VERBOSE = 3, MAXLEVEL } |
| ENUM for better readability of logger Levels. More... | |
The logging has some useful features:
WNS_NO_LOGGING. If the logging system is disabled there is no more runtime overhead.
class Transmitter { public: .... void powerControl() { ... std::cout << "Set new power to: " << newPower << " dBm\n"; } ... };
Every time the algorithm is executed you will see an output like this:
Set new power to: 32 dBm Set new power to: 33 dBm Set new power to: 34 dBm Set new power to: 33 dBm
This is quite nice if you have only few logging messages. But with an increasing number of entities logging in such a way a number of problems appear:
In order to use the logging service you need to know two things:
More to come ;)
Definition at line 69 of file FormatStrategy.hpp.
Definition at line 70 of file FormatStrategy.hpp.
Definition at line 46 of file OutputStrategy.hpp.
Definition at line 47 of file OutputStrategy.hpp.
| enum wns::logger::Level |
1.5.5