Groups
Groups
Sign in
Groups
Groups
AltNet-Hispano
Conversations
About
Send feedback
Help
Cómo Usar Serilog en Windows Forms NET 6 (Core) ?
5 views
Skip to first unread message
Carlos Admirador
unread,
Feb 26, 2023, 7:42:31 AM
2/26/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AltNet-Hispano
Incluir parte de código en
static async Task Main()
para incluir DI o alguna otra forma
Siguiendo esta referencia no me funcionó (no reconoce AddSerilog)
https://www.thecodebuzz.com/file-logging-in-windows-form-application-using-serilog/
Igual me falta algo...
Carlos Admirador
unread,
Feb 27, 2023, 2:44:39 AM
2/27/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AltNet-Hispano
Estos paquetes son necesarios:
Microsoft.Extensions.Hosting
Serilog.Extensions.Logging
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
Reply all
Reply to author
Forward
0 new messages