#include <MamaLogFile.h>
Name | |
---|---|
void | setMaxSize(unsigned long newMax) |
void | setNumBackups(unsigned int newNum) |
void | setAppendMode(bool append) |
void | enableLogging(const char * file, MamaLogLevel level) |
void | disableLogging(void ) |
bool | loggingToFile(void ) |
void | rollFiles() |
class Wombat::MamaLogFile;
See: MamaLogFile
The [MamaLogFile](classWombat_1_1MamaLogFile.html)
class provides a single interface for the configuration and control of [Mama](classWombat_1_1Mama.html)
logging activity. The [MamaLogFile](classWombat_1_1MamaLogFile.html)
class expands upon the existing logging capabilities of [Mama](classWombat_1_1Mama.html)
providing the ability to set log file size and configure the number of log files maintained.
static void setMaxSize(
unsigned long newMax
)
Parameters:
Set the Size of the log files. Has no effect if log file is not successfully created via a call to MamaLogFile::enableLogging(…).
static void setNumBackups(
unsigned int newNum
)
Parameters:
Set the number of log files to be maintained. Has no effect if log file is not successfully created via a call to MamaLogFile::enableLogging(…).
static void setAppendMode(
bool append
)
Parameters:
Set the open method for the logfile. ‘true’ will keep any existing data in the file ‘false’ will overwrite any existing data in the file
static void enableLogging(
const char * file,
MamaLogLevel level
)
Parameters:
Enable logging. Will set log level and attempt to open a file of the named provided. If a file could not be created or parameter file is NULL mama log output is re-directed to stderr.
static void disableLogging(
void
)
Disable logging.
static bool loggingToFile(
void
)
Return true if currently logging to file (via MamaLogFile). Return false if not logging to file (via MamaLogFile).
static void rollFiles()
Perform a log file rolling.
Updated on 2023-03-31 at 15:29:25 +0100