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
00001 #pragma once 00002 00003 #include "null_logger.h" 00004 00005 // Allow your classes to easily log by implementing Logable 00006 00007 namespace LogIt { 00008 00009 class Logable 00010 { 00011 protected: 00012 Log::LoggerInterface * logger; 00013 00014 public: 00015 Logable(void) { 00016 this->logger = NullLogger::get_instance(); 00017 } 00018 00019 void set_logger(Log::LoggerInterface * logger = 0) { 00020 if (logger == 0) { 00021 this->logger = NullLogger::get_instance(); 00022 } else { 00023 this->logger = logger; 00024 } 00025 } 00026 }; 00027 00028 };
Generated on Thu Jul 14 2022 14:54:23 by
1.7.2
