added max-age and content-format
Fork of mbedConnectorInterface by
Diff: api/Logger.h
- Revision:
- 2:853f9ecc12df
- Parent:
- 0:b438482ebbfc
- Child:
- 5:a929d65eb385
--- a/api/Logger.h Tue Jan 27 22:52:25 2015 +0000 +++ b/api/Logger.h Tue Jan 27 23:41:34 2015 +0000 @@ -3,7 +3,7 @@ * @brief mbed CoAP Endpoint logging class * @author Doug Anson/Chris Paola * @version 1.0 - * @see + * @see * * Copyright (c) 2014 * @@ -19,48 +19,51 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - #ifndef __LOGGER_H__ - #define __LOGGER_H__ - - // mbed API - #include "mbed.h" - - // Support for std args - #include <stdarg.h> + +#ifndef __LOGGER_H__ +#define __LOGGER_H__ + +// mbed API +#include "mbed.h" + +// Support for std args +#include <stdarg.h> + +// Depends on use of BufferedSerial +#include "BufferedSerial.h" + +/** Logger class + */ +class Logger +{ +public: + /** + Default constructor + @param pc input BufferedSerial instance for debugging (if NULL, no debugging output will occur in the library) + */ + Logger(const BufferedSerial *pc); - // Depends on use of BufferedSerial - #include "BufferedSerial.h" - - class Logger { - public: - /** - Default constructor - @param pc input BufferedSerial instance for debugging (if NULL, no debugging output will occur in the library) - */ - Logger(const BufferedSerial *pc); - - /** - Copy constructor - @param logger input Logger instance to deep copy - */ - Logger(const Logger &logger); - - /** - Destructor - */ - virtual ~Logger(); - - /** - Log output - @param format input format for the logging - @param ... input (variable arguments to display) - */ - void log(const char *format, ...); - protected: - - private: - BufferedSerial *m_pc; - }; - - #endif // __LOGGER_H__ \ No newline at end of file + /** + Copy constructor + @param logger input Logger instance to deep copy + */ + Logger(const Logger &logger); + + /** + Destructor + */ + virtual ~Logger(); + + /** + Log output + @param format input format for the logging + @param ... input (variable arguments to display) + */ + void log(const char *format, ...); +protected: + +private: + BufferedSerial *m_pc; +}; + +#endif // __LOGGER_H__