You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by "Wright, Peter" <Pe...@six-group.com> on 2012/07/10 10:36:02 UTC
Synapse Class Mediator: writing to log files
Hi,
I've implemented a class mediator, but can't seem to get it
to write log messages.
I initialize the log as in sample 380
http://synapse.apache.org/userguide/samples/sample380.html
private static final Log log = LogFactory.getLog(myClass.class);
and then write log messages afterwards:
log.info("Hello World"),
but see nothing in any log files.
In which file should the messages be written?
Is there some missing config?
Thanks for any help,
Peter
The content of this e-mail is intended only for the confidential use of the person addressed.
If you are not the intended recipient, please notify the sender and delete this email immediately.
Thank you.
RE: Synapse Class Mediator: writing to log files
Posted by "Wright, Peter" <Pe...@six-group.com>.
Hi Hiranya,
Thanks - got it up logging correctly now.
Best regards,
Peter
-----Original Message-----
From: Hiranya Jayathilaka [mailto:hiranya911@gmail.com]
Sent: Dienstag, 10. Juli 2012 11:35
To: user@synapse.apache.org
Subject: Re: Synapse Class Mediator: writing to log files
If you're using Log4J/Commons logging, then you should add your package to
the log4j.properties file.
Thanks,
Hiranya
On Tue, Jul 10, 2012 at 2:06 PM, Wright, Peter
<Pe...@six-group.com>wrote:
> Hi,
>
> I've implemented a class mediator, but can't seem to get it
> to write log messages.
>
> I initialize the log as in sample 380
> http://synapse.apache.org/userguide/samples/sample380.html
>
> private static final Log log = LogFactory.getLog(myClass.class);
>
> and then write log messages afterwards:
>
> log.info("Hello World"),
>
> but see nothing in any log files.
>
> In which file should the messages be written?
> Is there some missing config?
>
> Thanks for any help,
> Peter
>
> The content of this e-mail is intended only for the confidential use of
> the person addressed.
> If you are not the intended recipient, please notify the sender and delete
> this email immediately.
> Thank you.
>
--
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.; http://wso2.org
E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
The content of this e-mail is intended only for the confidential use of the person addressed.
If you are not the intended recipient, please notify the sender and delete this email immediately.
Thank you.
Re: Synapse Class Mediator: writing to log files
Posted by Hiranya Jayathilaka <hi...@gmail.com>.
If you're using Log4J/Commons logging, then you should add your package to
the log4j.properties file.
Thanks,
Hiranya
On Tue, Jul 10, 2012 at 2:06 PM, Wright, Peter
<Pe...@six-group.com>wrote:
> Hi,
>
> I've implemented a class mediator, but can't seem to get it
> to write log messages.
>
> I initialize the log as in sample 380
> http://synapse.apache.org/userguide/samples/sample380.html
>
> private static final Log log = LogFactory.getLog(myClass.class);
>
> and then write log messages afterwards:
>
> log.info("Hello World"),
>
> but see nothing in any log files.
>
> In which file should the messages be written?
> Is there some missing config?
>
> Thanks for any help,
> Peter
>
> The content of this e-mail is intended only for the confidential use of
> the person addressed.
> If you are not the intended recipient, please notify the sender and delete
> this email immediately.
> Thank you.
>
--
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.; http://wso2.org
E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com