Ember::Logger
A static class that contains methods to output formatted logs to the standard output and a log file.
Methods
Method Descriptions
void init(bool logToFile, bool verbose);
Called during setup and used to specify if the logger should output to a file (logToFile) and if engine side debug statements should be printed (verbose).
ExampleApp() : Ember::Application()
{
Ember::Logger::init(false, true);
}void debug(const std::string& message);
Mainly called by the engine for output useful debugging information. This method will only work if verbose was set to true.
Ember::Logger::debug("Example Debug Statement.");void info(const std::string& message);
This method is used to output information to the standard output.
Ember::Logger::info("Example Info Statement.");void warn(const std::string& message);
Mainly called by the engine when a non-breaking action occurred.
Ember::Logger::warn("Example Warn Statement.");void error(const std::string& message);
Mainly called by the engine when a unexpected non-crash action occurred.
Ember::Logger::error("Example Error Statement.");void fatal(const std::string& message);
Mainly called by the engine when a crash action occurred.
Ember::Logger::fatal("Example Fatal Statement.");Last updated