tmxlite: tmx::Logger Class Reference

tmxlite 1.0.0 lightweight parse for Tiled maps

Public Types | Static Public Member Functions | List of all members
tmx::Logger Class Referencefinal

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 ()

## Detailed Description

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.

## Member Function Documentation

## ◆ log()

void tmx::Logger::log | ( | const std::string & | message,
|  | Type | type = Type::Info,
|  | Output | output = Output::Console )
| inlinestatic

Logs a message to a given destination.

Parameters

  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

The documentation for this class was generated from the following file:

- D:/W/B/src/tmxlite-1.4.5/tmxlite/include/tmxlite/detail/Log.hpp