Hi,
I am in process of evaluating the NLog for our applications
logging.
After evaluating other logging tools, I find it most suitable as
per our needs.
However, I have a concern.
Our need is to have the log file in the following
format.
<FileName>:<LineNo>:<LoggerLevel>: <Message>
: <Date Time>
Can the layout be rendered in the specific
format?
The major issue over here is to have a fixed length for the message
and if the message exceeds the size then the remaining message is displayed on
the next line.
For Example: If the message size is set to 10, and the message is
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" then the log file should have the output
as
<FileName>:<LineNo>:<LoggerLevel>:
ABCDEFGHIJ :<Date
Time>
<FileName>:<LineNo>:<LoggerLevel>:
KLMNOPQRST :<Date
Time>
<FileName>:<LineNo>:<LoggerLevel>: UVWXYZ
:<Date
Time>
If we can log the
messages in the aforementioned way, the log file is in more readable
format.
I would really appreciate
if someone can guide me through. Sample code snippets would be of great
help.
--
With warm Regards,
Arvind Nath Thakur,
http://www.linkedin.com/in/arvindthakur
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Nlog-list mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nlog-list