tmxlite 1.0.0
lightweight parse for Tiled maps
|
Class allowing messages to be logged to a combination of one or more destinations such as the console, log file or output window in Visual Studio. More...
#include <Log.hpp>
Public Types | |
enum class | Output { Console , File , All } |
enum class | Type { Info , Warning , Error } |
Static Public Member Functions | |
static void | log (const std::string &message, Type type=Type::Info, Output output=Output::Console) |
Logs a message to a given destination. | |
static const std::string & | bufferString () |
Class allowing messages to be logged to a combination of one or more destinations such as the console, log file or output window in Visual Studio.
|
inlinestatic |
Logs a message to a given destination.
message | Message to log |
type | Whether this message gets tagged as information, a warning or an error |
output | Destination for the message. Can be the console via cout, a log file on disk, or both |