Core class that represents a file logger.
More...
Core class that represents a file logger.
◆ FileLogger()
Nz::FileLogger::FileLogger |
( |
const String & |
logPath = "NazaraLog.log" | ) |
|
Constructs a FileLogger object with a file name.
- Parameters
-
◆ EnableStdReplication()
void Nz::FileLogger::EnableStdReplication |
( |
bool |
enable | ) |
|
|
overridevirtual |
Enables the replication to the stdout.
- Parameters
-
enable | If true, enables the replication |
Implements Nz::AbstractLogger.
◆ EnableTimeLogging()
void Nz::FileLogger::EnableTimeLogging |
( |
bool |
enable | ) |
|
Enables the log of the time.
- Parameters
-
enable | If true, enables the time log |
◆ IsStdReplicationEnabled()
bool Nz::FileLogger::IsStdReplicationEnabled |
( |
| ) |
const |
|
overridevirtual |
Checks whether or not the replication to the stdout is enabled.
- Returns
- true If replication is enabled
Implements Nz::AbstractLogger.
◆ IsTimeLoggingEnabled()
bool Nz::FileLogger::IsTimeLoggingEnabled |
( |
| ) |
const |
Checks whether or not the logging of the time is enabled.
- Returns
- true If logging of the time is enabled
◆ Write()
void Nz::FileLogger::Write |
( |
const String & |
string | ) |
|
|
overridevirtual |
◆ WriteError()
void Nz::FileLogger::WriteError |
( |
ErrorType |
type, |
|
|
const String & |
error, |
|
|
unsigned int |
line = 0 , |
|
|
const char * |
file = nullptr , |
|
|
const char * |
function = nullptr |
|
) |
| |
|
overridevirtual |
Writes an error in the log.
- Parameters
-
type | The error type |
error | The error text |
line | The line the error occurred |
file | The file the error occurred |
function | The function the error occurred |
- See also
- Write
Reimplemented from Nz::AbstractLogger.
The documentation for this class was generated from the following files: