You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (JIRA)" <ji...@apache.org> on 2016/12/13 15:50:58 UTC

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

Ganesh Murthy created DISPATCH-594:
--------------------------------------

             Summary: 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
             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