Guest User

Untitled

a guest
Sep 30th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.10 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////////////
  2. /// Feeds the specified logging information into Windows logging mechanisms.
  3. ///
  4. /// Logs provided here go to two locations:
  5. ///   1. Standard output stream (stdout)
  6. ///   1. Visual Studio console window (via OutputDebugString())
  7. ///  
  8. /// Log levels provided here add a prefix to each log printed. The mapping is
  9. /// described in the table below.
  10. ///  
  11. /// | LogLevel          | Log Prefix   |
  12. /// |-------------------|--------------|
  13. /// | LogLevel::Debug   | `"DEBUG - "` |
  14. /// | LogLevel::Warning | `"WARN - "`  |
  15. /// | LogLevel::Error   | `"ERROR - "` |
  16. ///    
  17. /// \param level
  18. ///      The log level of this message. Translates to a string prefix as shown
  19. ///      in the table above.
  20. ///      
  21. /// \param tag
  22. ///      The tag for the log. This is usually the application/module name.
  23. ///      
  24. /// \param message
  25. ///      The message to print.
  26. ///////////////////////////////////////////////////////////////////////////////
  27. void Log(Logging::LogLevel level, std::string const& tag, std::string const& message);
Advertisement
Add Comment
Please, Sign In to add comment