MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrPrint.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrPrint_H_
10 #define lgrPrint_H_
11 
12 #include "lgrUtil.h"
13 #include <stdio.h>
14 #include <ostream>
15 #include <lgrUtil/lgrPopupBox.h>
16 #ifdef _MSC_VER
17 #include <vadefs.h>
18 #endif
19 
20 class DtString;
21 
22 namespace MAKLogger
23 {
24 
28  {
29  public:
30 
31 
33  {
35  Critical = 0,
36 
38  Warning = 1,
39 
43  Info = 2,
44 
46  Verbose = 3,
47 
49  Debug = 4
50  };
51 
52  static void setMessageLevel(MessageLevelsEnum);
53  static MessageLevelsEnum messageLevel();
54 
56  static bool messageWillPrint(DtLgrPrinter::MessageLevelsEnum);
57 
59 
60  static void critical(const DtString& msg);
61  static void critical(const char *s, ...);
63 
65 
66  static void warning(const DtString& msg);
67  static void warning(const char *s, ...);
69 
71 
72  static void info(const DtString& msg);
73  static void info(const char *s, ...);
75 
77 
78  static void verbose(const DtString& msg);
79  static void verbose(const char *s, ...);
81 
83 
84  static void debug(const DtString& msg);
85  static void debug(const char *s, ...);
87 
89 
90  static void message(DtLgrPrinter::MessageLevelsEnum, const DtString&);
91  static void message(DtLgrPrinter::MessageLevelsEnum, const char* fmt, va_list args);
93 
95  static void (*messageFunction)(const DtString&);
96 
97  static void DtPrintLineToOutput(const DtString&);
98  static void DtPrintToOutput(const DtString&);
99 
100  static void outputMutex(bool lock);
101  };
102 
103 }
104 
105 #endif
The logger printer class prints logger specific messages.
Definition: lgrPrint.h:27
#define DT_DLL_LGRUTIL
Definition: lgrUtil.h:19
MessageLevelsEnum
Definition: lgrPrint.h:32
Contains IMPORT/EXPORT macros for lgrUtil library.
Contains MAKLogger::DtPopupBox class.

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)