Author |
Message
|
Adrian Jaravete |
Posted: Thu Mar 20, 2008 12:15 am Post subject: Dynamic file name in TRACE NODE ? |
|
|
Newbie
Joined: 19 Mar 2008 Posts: 2
|
Hi,
I am using a trace node to log incoming messages in a file.
The trace mode is configurated with destination=file and a full file path is supplied, such as C:\BROKER\LOGS\DAILY_PROGRAM.txt.
The message flow is running daily so all the messages are appended into the same file.
Question is how to dynamically produce different log files, for example I need daily basis?
Or how to obtain the trace file for last message flow execution ?
The "File path" parameter of Trace Node cannot use variables as ${CURRENT_DATE} to obtain different file names.
Some ideas?
Thank You. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 20, 2008 3:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Mods - please move this to Message Broker forum.
Adrian - you can't do this, I believe, even in 6.1. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 20, 2008 3:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Moved to WMB _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 20, 2008 3:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
What you need is a script to rename DAILY_PROGRAM.txt to DAILY_PROGRAM_<today's date>.txt
Or use a more flexible method to capture whatever the trace node is intended to capture. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
AkankshA |
Posted: Sun Mar 23, 2008 8:19 pm Post subject: Re: Dynamic file name in TRACE NODE ? |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
Adrian Jaravete wrote: |
Hi,
I am using a trace node to log incoming messages in a file.
The trace mode is configurated with destination=file and a full file path is supplied, such as C:\BROKER\LOGS\DAILY_PROGRAM.txt.
The message flow is running daily so all the messages are appended into the same file.
Question is how to dynamically produce different log files, for example I need daily basis?
Or how to obtain the trace file for last message flow execution ?
The "File path" parameter of Trace Node cannot use variables as ${CURRENT_DATE} to obtain different file names.
Some ideas?
Thank You. |
hmmmmm....
how about changing broker.xml n doing fresh deployments daily.....
or esle go by as vitor has said.... _________________ Cheers |
|
Back to top |
|
 |
Vitor |
Posted: Sun Mar 23, 2008 11:13 pm Post subject: Re: Dynamic file name in TRACE NODE ? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
AkankshA wrote: |
hmmmmm....
how about changing broker.xml n doing fresh deployments daily.....
|
Which could of course be automated through Ant or similar...
Very large sledgehammer to crack very small nut. I stand by my original assertion that whatever you're trying to capture (presumably audit information) can be captured in other ways. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|