|
AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
| 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).
| system | Logging system name - used to access environment variables |
| dir | Directory 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. |
| compress | If 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. |