I have question about NetCF nlog assembly version. I use config like this:
As you can see I have max 5 archive files. Older are removed. I noticed that after some times on a few units (Motorola MK590) flash folder where files are kept has less that few KB of free space. It looks like files are removed from system but free space is not increased – onlu reflashing of this folder help to restore previous free space.
I think that this can be system or memory issue but I need to prove this. I try to remove files using .NetCF File.Delete method but it works fine so I think that meybe you use some other method – my question is which method to remove files you use?
Please post your question on the forum. (http://nlog-project.org/forum.html). WordPress does not allow XML to be pasted in comments so your config is lost.
For the record: NLog uses File.Delete() so I’m guessing there must be something more going on in your situation.
Could you, please, give an example of how to call ${replace} WLR?
I tried to do something like this in config file, but the result of ${replace} was alway empty:
I was analysing Nlog to see if it can be used in our application. Apart from the standard log levels available (Trace..Info…Fatal), I was wondering if I can create custom log levels. It would be very helpful if this feature is available. I checked over the net and many posts on “StackOverflow” state that custom log levels cannot be created.
Please do let me know if this is possible, if so, please share the link for the same as well.
Hello.
I just today have started to study Nlog system.I have a qestion.
I want to separate each log message with empty line, like:
11:33:06 Warn Program.Main This is a Warn message
11:33:06 Error Program.Main This is an Error message
Can this be done? Do you have a page with a description of layout formatting rules (language)?
Thanks in advance.
This is definitely doable, just include ${newline} in your layout:
layout=”${date:format=HH\:mm\:ss} ${level} ${callsite} ${message}${newline}
BTW. In the future please use Forum for those kinds of questions.
Hi,
I have question about NetCF nlog assembly version. I use config like this:
As you can see I have max 5 archive files. Older are removed. I noticed that after some times on a few units (Motorola MK590) flash folder where files are kept has less that few KB of free space. It looks like files are removed from system but free space is not increased – onlu reflashing of this folder help to restore previous free space.
I think that this can be system or memory issue but I need to prove this. I try to remove files using .NetCF File.Delete method but it works fine so I think that meybe you use some other method – my question is which method to remove files you use?
I will be thankful if you help me with this.
Best regards,
Klaudiusz
Klaudiusz,
Please post your question on the forum. (http://nlog-project.org/forum.html). WordPress does not allow XML to be pasted in comments so your config is lost.
For the record: NLog uses File.Delete() so I’m guessing there must be something more going on in your situation.
Pozdrowienia,
Jarek
Hi,
I’m using NLog 2.0 Beta 1 in C# project.
Could you, please, give an example of how to call ${replace} WLR?
I tried to do something like this in config file, but the result of ${replace} was alway empty:
Kind regards,
Adam
Hi,
I was analysing Nlog to see if it can be used in our application. Apart from the standard log levels available (Trace..Info…Fatal), I was wondering if I can create custom log levels. It would be very helpful if this feature is available. I checked over the net and many posts on “StackOverflow” state that custom log levels cannot be created.
Please do let me know if this is possible, if so, please share the link for the same as well.
Thanks in Advance…
Shri
Hello,
Great work!
Quick Q:
Please, How do i configure nlog for a wcf service hosted in IIS.