DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
ConsoleLogger.h
Go to the documentation of this file.
1#pragma once
2#include "Common.h"
4
5namespace DotNetDupe {
6 namespace Extensions {
7 namespace Logging {
8
13 class ConsoleLogger : public LoggerBase {
14 public:
19
21 DOTNETDUPE_API ~ConsoleLogger() override = default;
22
26 DOTNETDUPE_API void Log(LogLevel logLevel, const DotNetDupe::System::String& message) override;
27
32 DOTNETDUPE_API void Log(LogLevel logLevel, const DotNetDupe::System::String& message,
34 };
35
36 }
37 }
38}
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
ConsoleLogger(const DotNetDupe::System::String &categoryName, const LoggerConfiguration &config)
Initializes a new instance of ConsoleLogger with category name and configuration.
void Log(LogLevel logLevel, const DotNetDupe::System::String &message) override
Writes a log entry to the console.
~ConsoleLogger() override=default
Virtual destructor for polymorphic cleanup.
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
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.