2,883
questions
1
vote
0
answers
48
views
Add structured logging parameters with object instance values
Assume following object model:
public class FooManager {
private ILogger _logger;
private Dictionary<string, Foo> _instances = ...
// CRUD interface
}
public class Foo {
public ...
0
votes
0
answers
59
views
UseSerilog vs AddSerilog: any functional difference in an asp.net application?
I have created a project to test serilog, nlog and log4net at the same time being unaware that depending on what you do this might not work and discovered in fact that calling UseSerilog would not ...
0
votes
0
answers
26
views
Web.config transform on custom section with attributes
I would like to transform a part of my 'web.config' file using a transformation file, but the value I am trying to change is within sections with attributes and the transformation does not occur if I ...
0
votes
0
answers
31
views
WixToolset v4 util:XmlFile NLog.config Element XPath ElementPath and its Value
I would like to edit the NLogConfig file with MSI Installation using WiX Toolset v4.
Using the util:XmlFile from WiX Toolset. I get an error message at compliation:
"ICE03: Invalid format string; ...
1
vote
2
answers
75
views
C# NLog add rule doesn't seem to work for some reason
I am trying to block some not needed Microsoft debug logs in my app. I have a separate settings file where nLogLevel is set as either info or debug depending what my settings say. When nLogLevel is ...
0
votes
0
answers
33
views
AWS - NLOG - Cloudwatch - Change logstream every day
Im working in a migration of a NET API to an Instance EC2.
And is well but i find a problem.
I need to the logs are separate by day for audit process, in the server we use File Target.
The logs is ...
0
votes
1
answer
28
views
nlog INSIDE of a Soap Api
I want to log information INSIDE of a soap api, using NLOG. But all I am finding is how to setup NLOG so the external website makes a call to the api and it uses NLOG to log the data. I need to see ...
0
votes
1
answer
51
views
why there's no output file
i try to find the answer but they are almost 6 years ago or older.then i see the issue on github. i try to custom a target following github but failed
i get the dll file from nuget package and add to ...
0
votes
2
answers
127
views
Issue with Folder and File Creation in MAUI Project
I am trying to create a folder and a text file in a MAUI project. When I run the application, I receive the following message:
Base Directory: C:\Users\xyz\AppData\Local
Log Directory: C:\Users\xyz\...
0
votes
2
answers
61
views
Exception thrown after "Refresh EventLog Source"
I've enabled NLog internal logging to figure out an issue where our logs suddenly stop sometimes.
Might be unrelated to the issue I'm trying to figure out but I've gotten this Exception for one of the ...
0
votes
1
answer
66
views
Using NLog to Log Specific Messages and Display Logs in ASP.NET Web API on IIS
I'm working on an ASP.NET Web API project and I have two related issues with logging using NLog that I'm hoping to get help with.
Log Specific Messages Only:
I want to configure NLog so that it only ...
1
vote
0
answers
30
views
Nlog is not writing to the file
Im using Nlog for my project.
And for some reason I don't get any logs in the project folder.
this is my nlog.config:
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns=&...
0
votes
0
answers
22
views
Nlog with derived CustomizedTarget, Write to CustomizedTarget called in same thread as logger.Error
I derived LimitedFrequencyEmailTarget from NLog MailTarget in my asp.net core application to stop send out email if there is too many email. When I tested it in visual studio, I found that the Write ...
0
votes
0
answers
30
views
I need to disable INFO for nlog on Microsoft.* and System.* but it isn't working
I want to disable the output of "Info" and it seems like this should work, but it doesn't. I a kind of new to NLog.
<!-- File Target for own log ...
0
votes
1
answer
40
views
log4net to nlog transition: how quickly switch between log levels for logging rules
We started transitioning from log4net to NLog, and I want to clarify something.
In log4net, you have a configuration with appenders and loggers. You skip the appenders and start with the 'root' logger....