34 #include <QtCore/QString>
35 #include <QtCore/QList>
36 #include <QtCore/QMap>
112 SgLogger(
int capacity=100,
bool isStoreInFile=
false,
const QString& fileName=
"logger.log");
154 virtual void write(
LogLevel, quint32,
const QString &,
bool=
false);
void setFacilitiesSerialNumber(double sn)
virtual void write(LogLevel, quint32, const QString &, bool=false)
SgLogger(int capacity=100, bool isStoreInFile=false, const QString &fileName="logger.log")
const QList< QString * > & getSpool() const
bool getIsStoreInFile() const
void attachSupplementLog(const QString &name, SgLogger *auxLogger)
void setIsStoreInFile(bool isStoreInFile)
SgLogger * lookupSupplementLog(const QString &name)
void delLogFacility(LogLevel lvl, quint32 f)
void setLogFacility(LogLevel lvl, quint32 f)
void setFileName(const QString &fileName)
void setIsNeedTimeMark(bool isNeedTimeMark)
double getFacilitiesSerialNumber() const
quint32 getLogFacility(LogLevel lvl) const
virtual void makeOutput(LogLevel level, const QString &s, bool isAsync)
const QString & getDirName() const
QMap< QString, SgLogger * > logSupplements_
void setDirName(const QString &dirName)
void addLogFacility(LogLevel lvl, quint32 f)
QString className() const
virtual void clearSpool()
void setCapacity(int capacity)
bool getIsNeedTimeMark() const
QList< QString * > spool_
double facilitiesSerialNumber_
const QString & getFileName() const
quint32 logFacilities_[4]
bool getUseFullDateFormat() const
bool isEligible(LogLevel lvl, quint32 f) const
void detachSupplementLog(const QString &name)
void setUseFullDateFormat(bool useFullDateFormat)