views:

44

answers:

2

I am using the patterns & practices enterprise library (p&p EntLib) logging block to write to a text file.

Some of the log message contain multiple lines which I would like to force to become a single line - in other words replacing the \r & \n with a space in the log messages prior to them being written to the file.

How do I configure the logging block for this, if this is possible?

+1  A: 

From memory you will need to create a custom formatter, something similar to this link.

Kane
A: 
Tuzo