That is what I thought - but no luck with that - I can't remember which class I 
was looking at but it sure looks like you can't control that prefix value - 
which I thought was very strange

Steve Whatmore, MBA, MCP, .NET
Senior Architect
416.598.1241 x245
-------------------------------------------------
PureFacts Financial Solutions
372 Bay Street, Suite 1400
Toronto, Ontario M5H 2W9
416.598.1241 main
888.596.9338 toll free
416.598.9226 fax
www.purefacts.com
PureFacts Financial Solutions is a Lynxdev Company
Please consider the environment before printing this e-mail.
This e-mail may be privileged and/or confidential, and the sender does not 
waive any related rights and obligations. Any distribution, use or copying of 
this e-mail or the information it contains by other than an intended recipient 
is unauthorized. If you received this e-mail in error, please advise me (by 
return e-mail or otherwise) immediately.
Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce 
pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation 
ou copie de ce message ou des renseignements qu'il contient par une personne 
autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce 
courrier électronique par erreur, veuillez m'en aviser immédiatement, par 
retour de courrier électronique ou par un autre moyen.
From: Ross Hinkley [mailto:rosshink...@gmail.com]
Sent: Tuesday, May 11, 2010 1:07 PM
To: Log4NET User
Subject: Re: Controlling the log message format

This should be controllable via the conversionPattern.  Something like the 
following in your appender, maybe?

<layout type="log4net.Layout.PatternLayout">
     <conversionPattern value="%date %-5level - %message%newline" />
</layout>

-Ross

On Tue, May 11, 2010 at 11:58 AM, Steven Whatmore 
<steven.whatm...@purefacts.com<mailto:steven.whatm...@purefacts.com>> wrote:
Good morning,

I would like to be able to control the format of the message, removing the 
initial prefix

As an example if the format of my message is:

       com.pf.util.implementation.AppConfigurationImpl: 2010-05-11 12:50:05,466 
DEBUG [9] com.pf.util.implementation.AppConfigurationImpl - handling 
sessionStart event

I would like to remove the initial 
"com.pf.util.implementation.AppConfigurationImpl" part resulting in:

2010-05-11 12:50:05,466 DEBUG [9] 
com.pf.util.implementation.AppConfigurationImpl - handling sessionStart event

I have tried it through configuration but can't seem to control the prefix

I took a quick look through the code and as far as I can tell this is not 
configurable.

Am I correct?

Whatty

Reply via email to