You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Paul Smith <ps...@aconex.com> on 2007/06/17 07:42:06 UTC
LogFilePatternReceiver & notification of completion
Is there any way a thread that creates a LogFilePatternReceiver to
soak in a file of events can be notified or joined onto the Thread
that the Receiver creates to imports the file?
I can't see a way. I was wondering if I could add a small property:
setUseCurrentThread(boolean) , than when true, uses the current
thread for the importing, or by default (false), creates a new Thread
to run it.
I'd also like to change the Thread creation so that it creates nicer
thread names if that's ok?
cheers,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
RE: LogFilePatternReceiver & notification of completion
Posted by Scott Deboy <sd...@comotivsystems.com>.
worth adding to beaninfo?
Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Telephone: 503.224.7496
Cell: 503.997.1367
Fax: 503.222.0185
sdeboy@comotivsystems.com
www.comotivsystems.com
-----Original Message-----
From: Paul Smith [mailto:psmith@aconex.com]
Sent: Sun 6/17/2007 8:29 PM
To: Log4J Developers List
Subject: Re: LogFilePatternReceiver & notification of completion
yep, I think that's a required step for all receivers.
Thanks Scott.
On 18/06/2007, at 1:22 PM, Scott Deboy wrote:
> Sure--fyi, I vaguely recall needing activateoptions to be ran in a
> new thread....without it, chainsaw behaved badly.
>
> Scott Deboy
> COMOTIV SYSTEMS
> 111 SW Columbia Street Ste. 950
> Portland, OR 97201
>
> Telephone: 503.224.7496
> Cell: 503.997.1367
> Fax: 503.222.0185
>
> sdeboy@comotivsystems.com
>
> www.comotivsystems.com
>
>
>
> -----Original Message-----
> From: Paul Smith [mailto:psmith@aconex.com]
> Sent: Sun 6/17/2007 2:42 PM
> To: Log4J Developers List
> Subject: Re: LogFilePatternReceiver & notification of completion
>
> isn't it the reverse? I need a synchronous receiver. The current
> behaviour is async. ?
>
> Can I apply my change?
>
> On 18/06/2007, at 3:34 AM, Scott Deboy wrote:
>
>> Sounds like an AsyncReceiver (essentially what Chainsaw is doing
>> under the covers).
>>
>> Scott Deboy
>> COMOTIV SYSTEMS
>> 111 SW Columbia Street Ste. 950
>> Portland, OR 97201
>>
>> Telephone: 503.224.7496
>> Cell: 503.997.1367
>> Fax: 503.222.0185
>>
>> sdeboy@comotivsystems.com
>>
>> www.comotivsystems.com
>>
>>
>>
>> -----Original Message-----
>> From: Paul Smith [mailto:psmith@aconex.com]
>> Sent: Sat 6/16/2007 10:42 PM
>> To: Log4J Developers List
>> Subject: LogFilePatternReceiver & notification of completion
>>
>> Is there any way a thread that creates a LogFilePatternReceiver to
>> soak in a file of events can be notified or joined onto the Thread
>> that the Receiver creates to imports the file?
>>
>> I can't see a way. I was wondering if I could add a small property:
>> setUseCurrentThread(boolean) , than when true, uses the current
>> thread for the importing, or by default (false), creates a new Thread
>> to run it.
>>
>> I'd also like to change the Thread creation so that it creates nicer
>> thread names if that's ok?
>>
>> cheers,
>>
>> Paul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>>
>> <winmail.dat>--------------------------------------------------------
>> -
>> ------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
> Paul Smith
> Core Engineering Manager
>
> Aconex
> The easy way to save time and money on your project
>
> 696 Bourke Street, Melbourne,
> VIC 3000, Australia
> Tel: +61 3 9240 0200 Fax: +61 3 9240 0299
> Email: psmith@aconex.com www.aconex.com
>
> This email and any attachments are intended solely for the addressee.
> The contents may be privileged, confidential and/or subject to
> copyright or other applicable law. No confidentiality or privilege is
> lost by an erroneous transmission. If you have received this e-mail
> in error, please let us know by reply e-mail and delete or destroy
> this mail and all copies. If you are not the intended recipient of
> this message you must not disseminate, copy or take any action in
> reliance on it. The sender takes no responsibility for the effect of
> this message upon the recipient's computer system.
>
>
>
>
> <winmail.dat>---------------------------------------------------------
> ------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
Paul Smith
Core Engineering Manager
Aconex
The easy way to save time and money on your project
696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200 Fax: +61 3 9240 0299
Email: psmith@aconex.com www.aconex.com
This email and any attachments are intended solely for the addressee.
The contents may be privileged, confidential and/or subject to
copyright or other applicable law. No confidentiality or privilege is
lost by an erroneous transmission. If you have received this e-mail
in error, please let us know by reply e-mail and delete or destroy
this mail and all copies. If you are not the intended recipient of
this message you must not disseminate, copy or take any action in
reliance on it. The sender takes no responsibility for the effect of
this message upon the recipient's computer system.
Re: LogFilePatternReceiver & notification of completion
Posted by Paul Smith <ps...@aconex.com>.
yep, I think that's a required step for all receivers.
Thanks Scott.
On 18/06/2007, at 1:22 PM, Scott Deboy wrote:
> Sure--fyi, I vaguely recall needing activateoptions to be ran in a
> new thread....without it, chainsaw behaved badly.
>
> Scott Deboy
> COMOTIV SYSTEMS
> 111 SW Columbia Street Ste. 950
> Portland, OR 97201
>
> Telephone: 503.224.7496
> Cell: 503.997.1367
> Fax: 503.222.0185
>
> sdeboy@comotivsystems.com
>
> www.comotivsystems.com
>
>
>
> -----Original Message-----
> From: Paul Smith [mailto:psmith@aconex.com]
> Sent: Sun 6/17/2007 2:42 PM
> To: Log4J Developers List
> Subject: Re: LogFilePatternReceiver & notification of completion
>
> isn't it the reverse? I need a synchronous receiver. The current
> behaviour is async. ?
>
> Can I apply my change?
>
> On 18/06/2007, at 3:34 AM, Scott Deboy wrote:
>
>> Sounds like an AsyncReceiver (essentially what Chainsaw is doing
>> under the covers).
>>
>> Scott Deboy
>> COMOTIV SYSTEMS
>> 111 SW Columbia Street Ste. 950
>> Portland, OR 97201
>>
>> Telephone: 503.224.7496
>> Cell: 503.997.1367
>> Fax: 503.222.0185
>>
>> sdeboy@comotivsystems.com
>>
>> www.comotivsystems.com
>>
>>
>>
>> -----Original Message-----
>> From: Paul Smith [mailto:psmith@aconex.com]
>> Sent: Sat 6/16/2007 10:42 PM
>> To: Log4J Developers List
>> Subject: LogFilePatternReceiver & notification of completion
>>
>> Is there any way a thread that creates a LogFilePatternReceiver to
>> soak in a file of events can be notified or joined onto the Thread
>> that the Receiver creates to imports the file?
>>
>> I can't see a way. I was wondering if I could add a small property:
>> setUseCurrentThread(boolean) , than when true, uses the current
>> thread for the importing, or by default (false), creates a new Thread
>> to run it.
>>
>> I'd also like to change the Thread creation so that it creates nicer
>> thread names if that's ok?
>>
>> cheers,
>>
>> Paul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>>
>> <winmail.dat>--------------------------------------------------------
>> -
>> ------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
> Paul Smith
> Core Engineering Manager
>
> Aconex
> The easy way to save time and money on your project
>
> 696 Bourke Street, Melbourne,
> VIC 3000, Australia
> Tel: +61 3 9240 0200 Fax: +61 3 9240 0299
> Email: psmith@aconex.com www.aconex.com
>
> This email and any attachments are intended solely for the addressee.
> The contents may be privileged, confidential and/or subject to
> copyright or other applicable law. No confidentiality or privilege is
> lost by an erroneous transmission. If you have received this e-mail
> in error, please let us know by reply e-mail and delete or destroy
> this mail and all copies. If you are not the intended recipient of
> this message you must not disseminate, copy or take any action in
> reliance on it. The sender takes no responsibility for the effect of
> this message upon the recipient's computer system.
>
>
>
>
> <winmail.dat>---------------------------------------------------------
> ------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
Paul Smith
Core Engineering Manager
Aconex
The easy way to save time and money on your project
696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200 Fax: +61 3 9240 0299
Email: psmith@aconex.com www.aconex.com
This email and any attachments are intended solely for the addressee.
The contents may be privileged, confidential and/or subject to
copyright or other applicable law. No confidentiality or privilege is
lost by an erroneous transmission. If you have received this e-mail
in error, please let us know by reply e-mail and delete or destroy
this mail and all copies. If you are not the intended recipient of
this message you must not disseminate, copy or take any action in
reliance on it. The sender takes no responsibility for the effect of
this message upon the recipient's computer system.
RE: LogFilePatternReceiver & notification of completion
Posted by Scott Deboy <sd...@comotivsystems.com>.
Sure--fyi, I vaguely recall needing activateoptions to be ran in a new thread....without it, chainsaw behaved badly.
Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Telephone: 503.224.7496
Cell: 503.997.1367
Fax: 503.222.0185
sdeboy@comotivsystems.com
www.comotivsystems.com
-----Original Message-----
From: Paul Smith [mailto:psmith@aconex.com]
Sent: Sun 6/17/2007 2:42 PM
To: Log4J Developers List
Subject: Re: LogFilePatternReceiver & notification of completion
isn't it the reverse? I need a synchronous receiver. The current
behaviour is async. ?
Can I apply my change?
On 18/06/2007, at 3:34 AM, Scott Deboy wrote:
> Sounds like an AsyncReceiver (essentially what Chainsaw is doing
> under the covers).
>
> Scott Deboy
> COMOTIV SYSTEMS
> 111 SW Columbia Street Ste. 950
> Portland, OR 97201
>
> Telephone: 503.224.7496
> Cell: 503.997.1367
> Fax: 503.222.0185
>
> sdeboy@comotivsystems.com
>
> www.comotivsystems.com
>
>
>
> -----Original Message-----
> From: Paul Smith [mailto:psmith@aconex.com]
> Sent: Sat 6/16/2007 10:42 PM
> To: Log4J Developers List
> Subject: LogFilePatternReceiver & notification of completion
>
> Is there any way a thread that creates a LogFilePatternReceiver to
> soak in a file of events can be notified or joined onto the Thread
> that the Receiver creates to imports the file?
>
> I can't see a way. I was wondering if I could add a small property:
> setUseCurrentThread(boolean) , than when true, uses the current
> thread for the importing, or by default (false), creates a new Thread
> to run it.
>
> I'd also like to change the Thread creation so that it creates nicer
> thread names if that's ok?
>
> cheers,
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>
> <winmail.dat>---------------------------------------------------------
> ------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
Paul Smith
Core Engineering Manager
Aconex
The easy way to save time and money on your project
696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200 Fax: +61 3 9240 0299
Email: psmith@aconex.com www.aconex.com
This email and any attachments are intended solely for the addressee.
The contents may be privileged, confidential and/or subject to
copyright or other applicable law. No confidentiality or privilege is
lost by an erroneous transmission. If you have received this e-mail
in error, please let us know by reply e-mail and delete or destroy
this mail and all copies. If you are not the intended recipient of
this message you must not disseminate, copy or take any action in
reliance on it. The sender takes no responsibility for the effect of
this message upon the recipient's computer system.
Re: LogFilePatternReceiver & notification of completion
Posted by Paul Smith <ps...@aconex.com>.
isn't it the reverse? I need a synchronous receiver. The current
behaviour is async. ?
Can I apply my change?
On 18/06/2007, at 3:34 AM, Scott Deboy wrote:
> Sounds like an AsyncReceiver (essentially what Chainsaw is doing
> under the covers).
>
> Scott Deboy
> COMOTIV SYSTEMS
> 111 SW Columbia Street Ste. 950
> Portland, OR 97201
>
> Telephone: 503.224.7496
> Cell: 503.997.1367
> Fax: 503.222.0185
>
> sdeboy@comotivsystems.com
>
> www.comotivsystems.com
>
>
>
> -----Original Message-----
> From: Paul Smith [mailto:psmith@aconex.com]
> Sent: Sat 6/16/2007 10:42 PM
> To: Log4J Developers List
> Subject: LogFilePatternReceiver & notification of completion
>
> Is there any way a thread that creates a LogFilePatternReceiver to
> soak in a file of events can be notified or joined onto the Thread
> that the Receiver creates to imports the file?
>
> I can't see a way. I was wondering if I could add a small property:
> setUseCurrentThread(boolean) , than when true, uses the current
> thread for the importing, or by default (false), creates a new Thread
> to run it.
>
> I'd also like to change the Thread creation so that it creates nicer
> thread names if that's ok?
>
> cheers,
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>
> <winmail.dat>---------------------------------------------------------
> ------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
Paul Smith
Core Engineering Manager
Aconex
The easy way to save time and money on your project
696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200 Fax: +61 3 9240 0299
Email: psmith@aconex.com www.aconex.com
This email and any attachments are intended solely for the addressee.
The contents may be privileged, confidential and/or subject to
copyright or other applicable law. No confidentiality or privilege is
lost by an erroneous transmission. If you have received this e-mail
in error, please let us know by reply e-mail and delete or destroy
this mail and all copies. If you are not the intended recipient of
this message you must not disseminate, copy or take any action in
reliance on it. The sender takes no responsibility for the effect of
this message upon the recipient's computer system.
RE: LogFilePatternReceiver & notification of completion
Posted by Scott Deboy <sd...@comotivsystems.com>.
Sounds like an AsyncReceiver (essentially what Chainsaw is doing under the covers).
Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Telephone: 503.224.7496
Cell: 503.997.1367
Fax: 503.222.0185
sdeboy@comotivsystems.com
www.comotivsystems.com
-----Original Message-----
From: Paul Smith [mailto:psmith@aconex.com]
Sent: Sat 6/16/2007 10:42 PM
To: Log4J Developers List
Subject: LogFilePatternReceiver & notification of completion
Is there any way a thread that creates a LogFilePatternReceiver to
soak in a file of events can be notified or joined onto the Thread
that the Receiver creates to imports the file?
I can't see a way. I was wondering if I could add a small property:
setUseCurrentThread(boolean) , than when true, uses the current
thread for the importing, or by default (false), creates a new Thread
to run it.
I'd also like to change the Thread creation so that it creates nicer
thread names if that's ok?
cheers,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org