Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
log.hpp
1 //////////////////////////////
2 //
3 // File: lxs/system/log.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Nov 27 2012
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __LXS_LOG__
15 #define __LXS_LOG__
16 namespace LxS
17 {
18  namespace System
19  {
20  //!@brief logging messages either to main console or to log buffer
21  //!
22  //! there are two kinds of messages: Message (things that are merely informative "how application progresses" but may be useful in debuggingg and Warning (which denotes potentially worrying facts, knowledge of which may be essential do debugging or performance tweaking
23  class Log
24  {
25  public:
26  //! Messages may be hidden
27  static void SetHideMessages(bool hide);
28  //! print message to main console. Format like printf, but \n is not required (platform-appropriate eoln will be added at the end of each and every message when needed)
29  static void Message(const char * fmt,...);
30  //! print warning to main console. Format like printf, but \n is not required (platform-appropriate eoln will be added at the end of each and every warning when needed)
31  static void Warning(const char * fmt,...);
32  };
33  }
34 }
35 #endif