Fixed issue 480

This commit is contained in:
Nick Bolton 2010-06-01 21:49:09 +00:00
parent 70cfc74ce1
commit b88d0fb5fd
2 changed files with 4 additions and 1 deletions

View File

@ -169,7 +169,9 @@ CLog::print(const char* file, int line, const char* fmt, ...)
} }
// print the prefix to the buffer. leave space for priority label. // print the prefix to the buffer. leave space for priority label.
if (file != NULL) { // do not prefix time and file for kPRINT (CLOG_PRINT)
if ((file != NULL) && (priority != kPRINT)) {
char message[2048]; char message[2048];
struct tm *tm; struct tm *tm;
char tmp[220]; char tmp[220];

View File

@ -40,6 +40,7 @@ public:
The logging priority levels in order of highest to lowest priority. The logging priority levels in order of highest to lowest priority.
*/ */
enum ELevel { enum ELevel {
kPRINT = -1, //!< For print only (no file or time)
kFATAL, //!< For fatal errors kFATAL, //!< For fatal errors
kERROR, //!< For serious errors kERROR, //!< For serious errors
kWARNING, //!< For minor errors and warnings kWARNING, //!< For minor errors and warnings