#include <log4cpp/Category.hh>
#include <QString>
Go to the source code of this file.
◆ initializeLogging()
void initializeLogging |
( |
const QString & | name, |
|
|
const QString & | filename, |
|
|
bool | isDebug ) |
|
extern |
Definition at line 21 of file Logger.cpp.
24{
26
27 const size_t MAX_FILE_SIZE_BYTES = 6 * 1024 * 1024;
28 const unsigned int MAX_BACKUP_INDEX = 2;
29 const bool APPEND_TO_PREVIOUS_FILE = false;
30
31
33 filename.toStdString (),
34 MAX_FILE_SIZE_BYTES,
35 MAX_BACKUP_INDEX,
36 APPEND_TO_PREVIOUS_FILE));
37
39
40
43
45
46
47
48
49
50 if (isDebug) {
52 } else {
54 }
55
56 mainCat->addAppender (appender);
57}
log4cpp::Category * mainCat
static Category & getRoot()
Noop method to get root.
Noop class that mimics the same class in the log4cpp library.
virtual void setLayout(Layout *layout)=0
Set the layout for this Appender.
Noop class that mimics the same class in the log4cpp library.
void setConversionPattern(const std::string &conversionPattern)
Noop method for setting the conversion pattern.
Noop class that mimics the same class in the log4cpp library.
◆ INDENTATION_DELTA
const QString INDENTATION_DELTA |
|
extern |
◆ INDENTATION_PAST_TIMESTAMP
const QString INDENTATION_PAST_TIMESTAMP |
|
extern |
◆ mainCat