Constructor
| 31 | |
| 32 | // Constructor |
| 33 | DefaultLogger::DefaultLogger(MemoryAllocator& allocator) |
| 34 | : mAllocator(allocator), mDestinations(allocator), mFormatters(allocator) |
| 35 | { |
| 36 | // Create the log formatters |
| 37 | mFormatters.add(Pair<Format, Formatter*>(Format::Text, new TextFormatter())); |
| 38 | mFormatters.add(Pair<Format, Formatter*>(Format::HTML, new HtmlFormatter())); |
| 39 | } |
| 40 | |
| 41 | // Destructor |
| 42 | DefaultLogger::~DefaultLogger() { |