mirror of https://github.com/Icinga/icinga2.git
parent
dac4ac02a9
commit
53c1434700
|
@ -42,10 +42,6 @@ using namespace icinga;
|
||||||
REGISTER_TYPE(CompatLogger);
|
REGISTER_TYPE(CompatLogger);
|
||||||
REGISTER_SCRIPTFUNCTION(ValidateRotationMethod, &CompatLogger::ValidateRotationMethod);
|
REGISTER_SCRIPTFUNCTION(ValidateRotationMethod, &CompatLogger::ValidateRotationMethod);
|
||||||
|
|
||||||
CompatLogger::CompatLogger(void)
|
|
||||||
: m_LastRotation(0)
|
|
||||||
{ }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @threadsafety Always.
|
* @threadsafety Always.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,16 +39,12 @@ public:
|
||||||
DECLARE_PTR_TYPEDEFS(CompatLogger);
|
DECLARE_PTR_TYPEDEFS(CompatLogger);
|
||||||
DECLARE_TYPENAME(CompatLogger);
|
DECLARE_TYPENAME(CompatLogger);
|
||||||
|
|
||||||
CompatLogger(void);
|
|
||||||
|
|
||||||
static void ValidateRotationMethod(const String& location, const Dictionary::Ptr& attrs);
|
static void ValidateRotationMethod(const String& location, const Dictionary::Ptr& attrs);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void Start(void);
|
virtual void Start(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
double m_LastRotation;
|
|
||||||
|
|
||||||
void WriteLine(const String& line);
|
void WriteLine(const String& line);
|
||||||
void Flush(void);
|
void Flush(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue