diff options
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index e3de2fb..b8f9ca3 100644 --- a/src/logger.cpp +++ b/src/logger.cpp | |||
@@ -23,6 +23,7 @@ Bu::Logger::~Logger() | |||
23 | 23 | ||
24 | void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...) | 24 | void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...) |
25 | { | 25 | { |
26 | #ifndef WIN32 | ||
26 | if( (nLevel&nLevelMask) == 0 ) | 27 | if( (nLevel&nLevelMask) == 0 ) |
27 | return; | 28 | return; |
28 | 29 | ||
@@ -63,6 +64,9 @@ void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction, | |||
63 | write( fileno(stdout), line, strlen(line) ); | 64 | write( fileno(stdout), line, strlen(line) ); |
64 | free( text ); | 65 | free( text ); |
65 | free( line ); | 66 | free( line ); |
67 | #else | ||
68 | #warning Bu::Logger::log IS A STUB for WIN32!!!! | ||
69 | #endif | ||
66 | } | 70 | } |
67 | 71 | ||
68 | void Bu::Logger::setFormat( const Bu::FString &str ) | 72 | void Bu::Logger::setFormat( const Bu::FString &str ) |