LoggerInterface inspired by PHP PSR-3
Revision 6:015483427bd3, committed 2017-04-02
- Comitter:
- Sille Van Landschoot
- Date:
- Sun Apr 02 13:18:33 2017 +0200
- Parent:
- 4:96f938f3d98a
- Parent:
- 3:f1457069237f
- Commit message:
- merge heads
Changed in this revision
LoggerInterface.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 96f938f3d98a -r 015483427bd3 LoggerInterface.h --- a/LoggerInterface.h Sun Apr 02 13:02:48 2017 +0200 +++ b/LoggerInterface.h Sun Apr 02 13:18:33 2017 +0200 @@ -13,7 +13,7 @@ * * @param string $message */ - virtual void emergency(char* message, ...) = 0; + virtual void emergency(const char* message, ...) = 0; /** * Action must be taken immediately. @@ -23,7 +23,7 @@ * * @param string $message */ - virtual void alert(char* message, ...) = 0; + virtual void alert(const char* message, ...) = 0; /** * Critical conditions. @@ -32,7 +32,7 @@ * * @param string $message */ - virtual void critical(char* message, ...) = 0; + virtual void critical(const char* message, ...) = 0; /** * Runtime errors that do not require immediate action but should typically @@ -40,7 +40,7 @@ * * @param string $message */ - virtual void error(char* message, ...) = 0; + virtual void error(const char* message, ...) = 0; /** * Exceptional occurrences that are not errors. @@ -50,14 +50,14 @@ * * @param string $message */ - virtual void warning(char* message, ...) = 0; + virtual void warning(const char* message, ...) = 0; /** * Normal but significant events. * * @param string $message */ - virtual void notice(char* message, ...) = 0; + virtual void notice(const char* message, ...) = 0; /** * Interesting events. @@ -66,14 +66,14 @@ * * @param string $message */ - virtual void info(char* message, ...) = 0; + virtual void info(const char* message, ...) = 0; /** * Detailed debug information. * * @param string $message */ - virtual void debug(char* message, ...) = 0; + virtual void debug(const char* message, ...) = 0; /** * Logs with an arbitrary level. @@ -81,7 +81,7 @@ * @param mixed $level * @param string $message */ - virtual void log(Level level, char* message, ...) = 0; + virtual void log(Level level, const char* message, ...) = 0; }; }