[ 
https://issues.apache.org/jira/browse/DISPATCH-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ganesh Murthy resolved DISPATCH-594.
------------------------------------
    Resolution: Fixed

> Log file over-written every time the router is restarted
> --------------------------------------------------------
>
>                 Key: DISPATCH-594
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-594
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Container
>    Affects Versions: 0.7.0
>            Reporter: Ganesh Murthy
>            Assignee: Ganesh Murthy
>             Fix For: 0.8.0
>
>
> Add the following in your router config file - 
> {noformat}
> log {
>     module: DEFAULT
>     enable: trace+
>     output: qdrouterd.log
> }
> {noformat}
> Start the router
> Stop the router and check the log file
> {noformat}
> Tue Dec 13 10:46:45 2016 AGENT (debug) Add entity: LogEntity(enable=trace+, 
> identity=log/DEFAULT, module=DEFAULT, name=log/DEFAULT, output=qdrouterd.log, 
> source=False, timestamp=True, type=org.apache.qpid.dispatch.log)
> Tue Dec 13 10:46:45 2016 AGENT (debug) Add entity: 
> LogEntity(identity=log/ROUTER_LS, module=ROUTER_LS, name=log/ROUTER_LS, 
> type=org.apache.qpid.dispatch.log)
> Tue Dec 13 10:46:45 2016 AGENT (debug) Add entity: 
> LogEntity(identity=log/ROUTER_MA, module=ROUTER_MA, name=log/ROUTER_MA, 
> type=org.apache.qpid.dispatch.log)
> Tue Dec 13 10:46:45 2016 AGENT (debug) Add entity: 
> LogEntity(identity=log/ROUTER_HELLO, module=ROUTER_HELLO, 
> name=log/ROUTER_HELLO, type=org.apache.qpid.dispatch.log)
> ......
> {noformat}
> Start the router again and stop it after a few seconds.
> {noformat}
> Tue Dec 13 10:49:51 2016 AGENT (debug) Add entity: LogEntity(enable=trace+, 
> identity=log/DEFAULT, module=DEFAULT, name=log/DEFAULT, output=qdrouterd.log, 
> source=False, timestamp=True, type=org.apache.qpid.dispatch.log)
> Tue Dec 13 10:49:51 2016 AGENT (debug) Add entity: 
> LogEntity(identity=log/ROUTER_LS, module=ROUTER_LS, name=log/ROUTER_LS, 
> type=org.apache.qpid.dispatch.log)
> Tue Dec 13 10:49:51 2016 AGENT (debug) Add entity: 
> LogEntity(identity=log/ROUTER_MA, module=ROUTER_MA, name=log/ROUTER_MA, 
> type=org.apache.qpid.dispatch.log)
> {noformat}
> The contents of the qdrouterd.log file has been erased and replaced with the 
> log from the second router run.
> The router must append to the log file not erase it and start new.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to