We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
With RichTextBoxTarget the applicatin crashes when I try to log an Error with exception argument.
if (Logger.IsErrorEnabled) Logger.Error("This is a message", new Exception("simple exception"));
System.MissingMethodException
'Method not found: 'Void NLog.ILogger.Error(System.Exception, System.String)'.'
This is my nlog.config
<?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <targets> <target name="richTextBox" xsi:type="RichTextBox" layout="${time} : ${message}" formName="MainForm" ControlName="LogViewer" autoScroll="true" maxLines="20" useDefaultRowColoringRules="true" allowAccessoryFormCreation="false" /> </targets> <rules> <logger name="*" minlevel="Info" writeTo="richTextBox" /> </rules> </nlog>
The text was updated successfully, but these errors were encountered:
Could you double check the NLog version where it's deployed? (properties of nlog.dll). It looks like there is an older version there
Sorry, something went wrong.
Yes!!
I had NLog 4.0.0, after update to 4.4.9 the code runs well.
Thank you very much for your time. I apologize for the inconvenience.
Glad it has been resolved! 👍
No branches or pull requests
Hi
With RichTextBoxTarget the applicatin crashes when I try to log an Error with exception argument.
System.MissingMethodException
This is my nlog.config
The text was updated successfully, but these errors were encountered: