Simple multipurpose logger

Fork of LogIt by Nico De Witte

Files at this revision

API Documentation at this revision

Comitter:
dwini
Date:
Wed May 03 14:16:40 2017 +0000
Parent:
6:17bc740828b8
Commit message:
Renaming namespace as it conflicts with other existing logger.

Changed in this revision

LoggerInterface.lib Show diff for this revision Revisions of this file
README.md Show annotated file Show diff for this revision Revisions of this file
logable.h Show annotated file Show diff for this revision Revisions of this file
loggers/null_logger.h Show annotated file Show diff for this revision Revisions of this file
loggers/serial_logger.cpp Show annotated file Show diff for this revision Revisions of this file
loggers/serial_logger.h Show annotated file Show diff for this revision Revisions of this file
--- a/LoggerInterface.lib	Thu Dec 15 19:29:05 2016 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://developer.mbed.org/users/dwini/code/LoggerInterface/#8b20cda3dee5
--- a/README.md	Thu Dec 15 19:29:05 2016 +0100
+++ b/README.md	Wed May 03 14:16:40 2017 +0000
@@ -1,4 +1,4 @@
-# Mbed LogIt
+# Mbed LogItNow
 
 Logger library that is build based on the LoggerInterface library that follows
 the PSR-3 logger standard.
@@ -6,18 +6,18 @@
 This library provides an abstract class logable to make your classes easily Logger
 aware.
 
-Besides that the LogIt library also has a SerialLogger implementation and a NullLogger
+Besides that the LogItNow library also has a SerialLogger implementation and a NullLogger
 for production applications where no logging should be done.
 
 NullLogger is used as a default when making your classes Logger aware. It is implemented
 using the Singleton pattern to avoid waste of resources.
 
-## Using LogIt
+## Using LogItNow
 
 First make your class inherit from Logable as such
 
 ```C++
-class Router : public LogIt::Logable {
+class Router : public LogItNow::Logable {
   //...
 };
 ```
--- a/logable.h	Thu Dec 15 19:29:05 2016 +0100
+++ b/logable.h	Wed May 03 14:16:40 2017 +0000
@@ -4,7 +4,7 @@
 
 // Allow your classes to easily log by implementing Logable
 
-namespace LogIt {
+namespace LogItNow {
 
   class Logable
   {
--- a/loggers/null_logger.h	Thu Dec 15 19:29:05 2016 +0100
+++ b/loggers/null_logger.h	Wed May 03 14:16:40 2017 +0000
@@ -7,7 +7,7 @@
 // Kudos to Sandi Metz and her seminar on how to avoid if statements
 
 // Source: http://stackoverflow.com/questions/1008019/c-singleton-design-pattern
-namespace LogIt {
+namespace LogItNow {
 
   class NullLogger : public Log::LoggerInterface
   {
--- a/loggers/serial_logger.cpp	Thu Dec 15 19:29:05 2016 +0100
+++ b/loggers/serial_logger.cpp	Wed May 03 14:16:40 2017 +0000
@@ -2,7 +2,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 
-namespace LogIt {
+namespace LogItNow {
 
   SerialLogger::SerialLogger(Serial* serial)
   {
--- a/loggers/serial_logger.h	Thu Dec 15 19:29:05 2016 +0100
+++ b/loggers/serial_logger.h	Wed May 03 14:16:40 2017 +0000
@@ -3,7 +3,7 @@
 #include "LoggerInterface.h"
 #include "mbed.h"
 
-namespace LogIt {
+namespace LogItNow {
 
   class SerialLogger : public Log::LoggerInterface
   {