Skip to content

Observito/EventSourceLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EventSourceLogger

Forward in-process event source messages to a logger.

Example

var loggerFactory = LoggerFactory.Create(builder => {
    builder.AddConsole();
});
var consoleLogger = loggerFactory.CreateLogger<Program>(); // use your favourite logger here, e.g. event log

using var logger = new EventSourceLogger(consoleLogger);

logger.EnableEvents(EchoEventSource.Log, EventLevel.Informational);

About

Forward in-process event source messages to a logger.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages