Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

4.0.0 silently fails logging #33

Open
nelsontkq opened this issue Jul 16, 2019 · 1 comment
Open

4.0.0 silently fails logging #33

nelsontkq opened this issue Jul 16, 2019 · 1 comment

Comments

@nelsontkq
Copy link

nelsontkq commented Jul 16, 2019

Web API .net framework 4.7.2

version 3.0.21 logs to logentries fine, 4.0.0 fails silently.

Here's my setup to replicate.

private static void InitializeLogger(string token)
{
Log.Logger = new LoggerConfiguration().Enrich.FromLogContext()
.WriteTo.Logentries(token, outputTemplate: "[{Level}] {Message} {Properties:j}{NewLine}{Exception}").CreateLogger();
Log.Information("Log initialized.");
}

@PureKrome
Copy link

Try checking out the debugging section to getting more information "under the hood" to see if that helps diagnose the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants