Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////////////////////////////////////
- /// Feeds the specified logging information into Windows logging mechanisms.
- ///
- /// Logs provided here go to two locations:
- /// 1. Standard output stream (stdout)
- /// 1. Visual Studio console window (via OutputDebugString())
- ///
- /// Log levels provided here add a prefix to each log printed. The mapping is
- /// described in the table below.
- ///
- /// | LogLevel | Log Prefix |
- /// |-------------------|--------------|
- /// | LogLevel::Debug | `"DEBUG - "` |
- /// | LogLevel::Warning | `"WARN - "` |
- /// | LogLevel::Error | `"ERROR - "` |
- ///
- /// \param level
- /// The log level of this message. Translates to a string prefix as shown
- /// in the table above.
- ///
- /// \param tag
- /// The tag for the log. This is usually the application/module name.
- ///
- /// \param message
- /// The message to print.
- ///////////////////////////////////////////////////////////////////////////////
- void Log(Logging::LogLevel level, std::string const& tag, std::string const& message);
Advertisement
Add Comment
Please, Sign In to add comment