AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ Open()

void drama::logging::Logger::Open ( const std::string &  system,
const std::string &  dir = "",
bool  compress = false 
)

Open the log file.

If the log file is already open, it is closed and opened again (creating a new version number).

Parameters
systemLogging system name - used to access environment variables
dirDirectory into which to put the log file. If an empty string is supplied, will use the value of the
DRAMA_LOGDIR environment variable, and if that has no value, the current default directory.
compressIf set true, then the log file is compressed automatically whilst it is being written.
Defaults to false. This mode can be overwritten by setting the GIT_LOGGER_COMPRESS or GIT_LOGGER_NOCOMPRESS environment variables.
The compressed file has .gz appended to the filename after .log.