Loading...
Searching...
No Matches
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
14namespace pdftron { namespace PDF {
15class PDFDoc;
16
22{
23public:
24 //enums:
27 eDisk = 1,
30 };
31 enum LogLevel {
32 eTrace = 0,
33 eDebug = 1,
34 eInfo = 2,
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 bool EnableLogBackend(LogBackend backend)
static void SetDefaultLogThreshold(LogLevel threshold)
static void LogMessage(LogLevel threshold, UString message, UString filename, UInt32 line_number)
static void DisableLogBackend(LogBackend backend)
static void LogStreamMessage(LogLevel threshold, UString stream, UString message, UString filename, UInt32 line_number)
static bool SetLogFileName(UString log_filename)
static bool SetLogLocation(UString log_directory, UString log_filename)
static void SetCutoffLogThreshold(LogLevel threshold)
static UString GetPDFViewTileSummary()
static bool ConfigureLogFromJsonString(UString config_string)
static void SetThresholdForLogStream(UString stream_name, LogLevel stream_threshold)
static UString GetDefaultConfigFile()
TRN_UInt32 UInt32
Definition BasicTypes.h:13