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-2025 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 
22 {
23 public:
24  //enums:
25  enum LogBackend {
26  eDebugger = 0,
27  eDisk = 1,
28  eCallback = 2,
30  };
31  enum LogLevel {
32  eTrace = 0,
33  eDebug = 1,
34  eInfo = 2,
35  eWarning = 3,
36  eError = 4,
37  eFatal = 5,
39  };
40 
41  //methods:
42 
48  static bool IsLogSystemAvailable();
49 
56  static bool ConfigureLogFromJsonString(UString config_string);
57 
64 
73  static void LogMessage(LogLevel threshold, UString message, UString filename, UInt32 line_number);
74 
84  static void LogStreamMessage(LogLevel threshold, UString stream, UString message, UString filename, UInt32 line_number);
85 
93  static bool SetLogLocation(UString log_directory, UString log_filename);
94 
101  static bool SetLogFileName(UString log_filename);
102 
109  static void SetThresholdForLogStream(UString stream_name, LogLevel stream_threshold);
110 
116  static void SetDefaultLogThreshold(LogLevel threshold);
117 
123  static void SetCutoffLogThreshold(LogLevel threshold);
124 
131  static bool EnableLogBackend(LogBackend backend);
132 
138  static void DisableLogBackend(LogBackend backend);
139 
146 
147 };
148 
149 #include <Impl/PDFNetInternalTools.inl>
150 } //end pdftron
151 } //end PDF
152 
153 
154 #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()