DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
FileLogger.h
Go to the documentation of this file.
1#pragma once
2#include "Common.h"
4
5
6namespace DotNetDupe {
7 namespace Extensions {
8 namespace Logging {
9
10 struct FileLoggerContext;
11
16 class FileLogger : public LoggerBase {
17 private:
18 struct Impl;
20
21 public:
28
31
35 DOTNETDUPE_API void Log(LogLevel logLevel, const DotNetDupe::System::String& message) override;
36
41 DOTNETDUPE_API void Log(LogLevel logLevel, const DotNetDupe::System::String& message,
43 };
44
45 }
46 }
47}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
void Log(LogLevel logLevel, const DotNetDupe::System::String &message) override
Appends a plain message entry to the log file.
~FileLogger() override
Destructor releasing logger resources.
FileLogger(const DotNetDupe::System::String &categoryName, const LoggerConfiguration &config, const DotNetDupe::System::SmartPointer< FileLoggerContext > &context)
Initializes a new FileLogger instance.
LoggerBase(const DotNetDupe::System::String &categoryName, const LoggerConfiguration &config)
Initializes a new LoggerBase instance with category name and configuration.
Represents a collection of keys and values.
Definition Dictionary.h:66
A unified smart pointer that supports both unique and shared ownership semantics.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74
LogLevel
Defines logging severity levels.
Definition ILogger.h:15
Encapsulates logging system configuration options.