All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PDFNetInternalTools.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 // !Warning! This file is autogenerated, modify the .codegen file, not this one
6 // (any changes here will be wiped out during the autogen process)
7 
8 #ifndef PDFTRON_H_CPPPDFPDFNetInternalTools
9 #define PDFTRON_H_CPPPDFPDFNetInternalTools
10 #include <C/PDF/TRN_PDFNetInternalTools.h>
11 #include <Common/BasicTypes.h>
12 #include <Common/UString.h>
13 
14 namespace pdftron { namespace PDF {
15 class PDFDoc;
16 
25 {
26 public:
27  //enums:
28  enum LogBackend {
29  eDebugger = 0,
30  eDisk = 1,
31  eCallback = 2,
33  };
34  enum LogLevel {
35  eTrace = 0,
36  eDebug = 1,
37  eInfo = 2,
38  eWarning = 3,
39  eError = 4,
40  eFatal = 5,
42  };
43 
44  //methods:
45 
51  static bool IsLogSystemAvailable();
52 
59  static bool ConfigureLogFromJsonString(UString config_string);
60 
67 
76  static void LogMessage(LogLevel threshold, UString message, UString filename, UInt32 line_number);
77 
87  static void LogStreamMessage(LogLevel threshold, UString stream, UString message, UString filename, UInt32 line_number);
88 
96  static bool SetLogLocation(UString log_directory, UString log_filename);
97 
104  static bool SetLogFileName(UString log_filename);
105 
112  static void SetThresholdForLogStream(UString stream_name, LogLevel stream_threshold);
113 
119  static void SetDefaultLogThreshold(LogLevel threshold);
120 
126  static void SetCutoffLogThreshold(LogLevel threshold);
127 
134  static bool EnableLogBackend(LogBackend backend);
135 
141  static void DisableLogBackend(LogBackend backend);
142 
149 
150 };
151 
152 #include <Impl/PDFNetInternalTools.inl>
153 } //end pdftron
154 } //end PDF
155 
156 
157 #endif //PDFTRON_H_CPPPDFPDFNetInternalTools
static void LogMessage(LogLevel threshold, UString message, UString filename, UInt32 line_number)
static bool SetLogFileName(UString log_filename)
static void DisableLogBackend(LogBackend backend)
static bool EnableLogBackend(LogBackend backend)
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
static void SetThresholdForLogStream(UString stream_name, LogLevel stream_threshold)
static void SetDefaultLogThreshold(LogLevel threshold)
static void SetCutoffLogThreshold(LogLevel threshold)
static bool ConfigureLogFromJsonString(UString config_string)
static UString GetDefaultConfigFile()
static void LogStreamMessage(LogLevel threshold, UString stream, UString message, UString filename, UInt32 line_number)
static bool SetLogLocation(UString log_directory, UString log_filename)
static UString GetPDFViewTileSummary()