Class BootstrapLoggerFactory
Inheritance
System.Object
BootstrapLoggerFactory
Assembly: Steeltoe.Common.Logging.dll
Syntax
public sealed class BootstrapLoggerFactory : ILoggerFactory
Methods
|
Edit this page
View Source
AddProvider(ILoggerProvider)
Declaration
public void AddProvider(ILoggerProvider provider)
Parameters
Type |
Name |
Description |
ILoggerProvider |
provider |
|
|
Edit this page
View Source
CreateConsole()
Declaration
public static BootstrapLoggerFactory CreateConsole()
Returns
|
Edit this page
View Source
CreateConsole(Action<ILoggingBuilder>)
Declaration
public static BootstrapLoggerFactory CreateConsole(Action<ILoggingBuilder> configure)
Parameters
Type |
Name |
Description |
Action<ILoggingBuilder> |
configure |
Enables to further configure the bootstrap logger from code.
|
Returns
|
Edit this page
View Source
CreateEmpty(Action<ILoggingBuilder>)
Declaration
public static BootstrapLoggerFactory CreateEmpty(Action<ILoggingBuilder> configure)
Parameters
Type |
Name |
Description |
Action<ILoggingBuilder> |
configure |
Enables to fully configure the bootstrap logger from code.
|
Returns
|
Edit this page
View Source
CreateLogger(String)
Declaration
public ILogger CreateLogger(string categoryName)
Parameters
Type |
Name |
Description |
System.String |
categoryName |
|
Returns
|
Edit this page
View Source
Dispose()
Declaration
|
Edit this page
View Source
Upgrade(ILoggerFactory)
Upgrades the active loggers from new instances obtained from the service container.
Declaration
public void Upgrade(ILoggerFactory loggerFactory)
Parameters
Type |
Name |
Description |
ILoggerFactory |
loggerFactory |
The logger factory from the service container.
|