Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something about logfile #1

Open
MrMix2016 opened this issue Jan 17, 2017 · 1 comment
Open

something about logfile #1

MrMix2016 opened this issue Jan 17, 2017 · 1 comment

Comments

@MrMix2016
Copy link

MrMix2016 commented Jan 17, 2017

i can create log file successfully,but no word in my logfile,am i missing something
and create an Exception file
2017-01-17 13:16:13.5211 Error Error has been raised. Exception: System.TypeInitializationException: The type initializer for 'NLog.Internal.PlatformDetector' threw an exception. ---> System.MissingMethodException: Method not found: 'Microsoft.Extensions.PlatformAbstractions.RuntimeEnvironment Microsoft.Extensions.PlatformAbstractions.PlatformServices.get_Runtime()'.
at NLog.Internal.PlatformDetector.GetCurrentRuntimeOS()
at NLog.Internal.PlatformDetector..cctor()
--- End of inner exception stack trace ---
at NLog.Internal.PlatformDetector.get_CurrentOS()
at NLog.Internal.FileAppenders.BaseFileAppender.TryCreateFileStream(Boolean allowFileSharedWriting)
at NLog.Internal.FileAppenders.BaseFileAppender.CreateFileStream(Boolean allowFileSharedWriting)
at NLog.Internal.FileAppenders.RetryingMultiProcessFileAppender.Write(Byte[] bytes)
at NLog.Targets.FileTarget.WriteToFile(String fileName, LogEventInfo logEvent, Byte[] bytes, Boolean justData)
at NLog.Targets.FileTarget.ProcessLogEvent(LogEventInfo logEvent, String fileName, Byte[] bytesToWrite)
at NLog.Targets.FileTarget.Write(LogEventInfo logEvent)
at NLog.Targets.Target.Write(AsyncLogEventInfo logEvent)

@linezero
Copy link
Owner

Nlog updates to the latest version.

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

No branches or pull requests

2 participants