Core class that represents a logger.
More...
|
| NazaraStaticSignal (OnLogWrite, const String &) |
|
| NazaraStaticSignal (OnLogWriteError, ErrorType, const String &, unsigned int, const char *, const char *) |
|
Core class that represents a logger.
◆ Enable()
void Nz::Log::Enable |
( |
bool |
enable | ) |
|
|
static |
Enables the log.
- Parameters
-
enable | If true, enables the log |
◆ GetLogger()
Gets the logger.
- Returns
- An abstract pointer to the logger
◆ IsEnabled()
bool Nz::Log::IsEnabled |
( |
| ) |
|
|
static |
Checks whether or not the logging is enabled.
- Returns
- true If logging is enabled
◆ SetLogger()
Sets the logger.
- Parameters
-
◆ Write()
void Nz::Log::Write |
( |
const String & |
string | ) |
|
|
static |
Writes a string in the log.
- Parameters
-
- See also
- WriteError
◆ WriteError()
void Nz::Log::WriteError |
( |
ErrorType |
type, |
|
|
const String & |
error, |
|
|
unsigned int |
line = 0 , |
|
|
const char * |
file = nullptr , |
|
|
const char * |
function = nullptr |
|
) |
| |
|
static |
Writes the error in the log.
- Parameters
-
type | Type of the error |
error | Message of the error |
line | Line of the error |
file | File of the error |
function | Function of the error |
- See also
- Write
The documentation for this class was generated from the following files:
- include/Nazara/Core/Log.hpp
- src/Nazara/Core/Log.cpp