You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/12/15 20:19:58 UTC

[jira] [Commented] (DISPATCH-594) Log file over-written every time the router is restarted

    [ https://issues.apache.org/jira/browse/DISPATCH-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15752406#comment-15752406 ] 

ASF subversion and git services commented on DISPATCH-594:
----------------------------------------------------------

Commit 85372a6aee200e7db59dba53301fa8cfca045008 in qpid-dispatch's branch refs/heads/master from [~ganeshmurthy]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=85372a6 ]

DISPATCH-594 - Logs are appended to the log file if it already exists


> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org