Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LogIt by
logable.h
- Committer:
- Nico De Witte
- Date:
- 2016-12-15
- Revision:
- 6:17bc740828b8
- Parent:
- 4:9c5143891c8a
- Child:
- 7:eb101b1726a5
File content as of revision 6:17bc740828b8:
#pragma once #include "null_logger.h" // Allow your classes to easily log by implementing Logable namespace LogIt { class Logable { protected: Log::LoggerInterface * logger; public: Logable(void) { this->logger = NullLogger::get_instance(); } void set_logger(Log::LoggerInterface * logger = 0) { if (logger == 0) { this->logger = NullLogger::get_instance(); } else { this->logger = logger; } } }; };