Skip to content

Commit

Permalink
add simple console support
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Oct 16, 2023
1 parent 0be1988 commit d65c34b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DragonFruit.OnionFruit.Web.Worker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ private static void ConfigureHost(IConfigurationBuilder host)

private static void ConfigureLogging(HostBuilderContext host, ILoggingBuilder logging)
{
logging.ClearProviders();
logging.AddSimpleConsole(o =>
{
o.SingleLine = true;
o.IncludeScopes = false;
o.TimestampFormat = "[dd/MM/yyyy hh:mm:ss] ";
});

#if WINDOWS
logging.AddEventLog(o =>
{
Expand Down

0 comments on commit d65c34b

Please sign in to comment.