Kamran,
        Without seeing your log4net config it's hard to diagnose exactly 
what's going on, but have a look at 
http://logging.apache.org/log4net/release/faq.html#layout-header-xml-newlines 
for an explaination of how to embed newlines in the header and footer 
corectly.

On Tue, 10 Jan 2006, Kamran Shahid wrote:

> Hi, i am using Log4Net, I dont know why, the log it writing in this format.
> here, if you notice that the [Header] is on the same line and \r\n is also
> not working properly, where as the [Footer] is missing,yes the footer tag
> will appear but when I will write any entry again, can anybody tell me why
> it is happening.
> [Header]\r\n2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 1 for
> each Loop
> 2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 1 for each Loop
> 2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 2. IsOldDate = True
> I am expecting the log in this format.
> [Header]
> 2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 1 for each Loop
> 2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 1 for each Loop
> 2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 2. IsOldDate = True
> [Footer]
> Can anybody help me out.
> Thanks and best regards
> 
> If someone know the better forum for Log4Net then please help me
> 

-- 
Niall Daley
Log4net Dev

Reply via email to