DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
LoggerFactory.h
Go to the documentation of this file.
1
#pragma once
2
#include "
Common.h
"
3
#include "
Extensions/Logging/ILogger.h
"
4
5
6
namespace
DotNetDupe
{
7
namespace
Extensions
{
8
namespace
Logging
{
9
15
class
LoggerFactory
:
public
ILoggerFactory
{
16
private
:
17
struct
Impl;
18
DotNetDupe::System::SmartPointer<Impl>
m_pImpl;
19
20
public
:
22
DOTNETDUPE_API
LoggerFactory
();
23
25
DOTNETDUPE_API
~LoggerFactory
()
override
;
26
29
DOTNETDUPE_API
void
AddProvider
(
const
DotNetDupe::System::SmartPointer<ILoggerProvider>
& pProvider)
override
;
30
34
DOTNETDUPE_API
DotNetDupe::System::SmartPointer<ILogger>
CreateLogger
(
const
DotNetDupe::System::String
& categoryName)
override
;
35
};
36
37
}
38
}
39
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
ILogger.h
DotNetDupe::Extensions::Logging::ILoggerFactory
Represents a type used to configure the logging system and create instances of ILogger.
Definition
ILogger.h:86
DotNetDupe::Extensions::Logging::LoggerFactory::AddProvider
void AddProvider(const DotNetDupe::System::SmartPointer< ILoggerProvider > &pProvider) override
Adds an ILoggerProvider backend to the factory.
Definition
LoggerFactory.cpp:23
DotNetDupe::Extensions::Logging::LoggerFactory::CreateLogger
DotNetDupe::System::SmartPointer< ILogger > CreateLogger(const DotNetDupe::System::String &categoryName) override
Creates a new ILogger instance for the specified category.
Definition
LoggerFactory.cpp:32
DotNetDupe::Extensions::Logging::LoggerFactory::LoggerFactory
LoggerFactory()
Initializes a new LoggerFactory instance.
Definition
LoggerFactory.cpp:16
DotNetDupe::Extensions::Logging::LoggerFactory::~LoggerFactory
~LoggerFactory() override
Virtual destructor cleaning up registered providers.
DotNetDupe::System::SmartPointer
A unified smart pointer that supports both unique and shared ownership semantics.
Definition
SmartPointer.h:72
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::Extensions::Logging
Definition
AggregateLogger.h:8
DotNetDupe::Extensions
Definition
IServiceCollection.h:8
DotNetDupe
Definition
IServiceCollection.h:7
Include
Extensions
Logging
LoggerFactory.h
Generated by
1.18.0