Tommi Mäkitalo <tommi@...> writes:
> > Of course can rotating be done by the OS. But if tntnet does it, tntnet
> > do not need to be restarted. It might be a cleaner solution.
> >
> > Here everything goes into the accessLog. But errorLog is unused. It
> > looks like it was never used. I will remove it. And accessLog is not
> > truncated. It works here like before and like it should work.
> >
> > Tommi
> Not quite true. "errorLog" is used for stderr. Stderr is redirected to
> errorLog, so if a application writed to std::cerr, it is written into
> errorLog. But this happens only when tntnet is started in daemon mode.
> And as I read in the code, it is really truncated. But that is nothing
> new. It is just a bug, which I will fix.
>
> Tommi
Here *everything goes to the errorLog*:
My conf:
<accessLog>/var/log/tntnet/tntnet.log</accessLog>
<errorLog>/var/log/tntnet/error.log</errorLog>
<logging>
<rootlogger>INFO</rootlogger>
<loggers>
<logger><category>tntnet</category><level>WARN</level></logger>
</loggers>
</logging>
Tntnet is started with: "tntnet /etc/tntnet/tntnet.conf.xml".
A sample from "error.log":
2012-05-28 22:09:29.16583 [7466.140277164074752] INFO component.img2.service - 1
2012-05-28 22:09:29.16585 [7466.140277164074752] INFO component.img2.service - 2
2012-05-28 22:09:29.16587 [7466.140277164074752] INFO component.img2.service - 3
2012-05-28 22:09:29.17578 [7466.140277164074752] ERROR component.img2.service -
Error using img2.scaleService: Operation cannot be accomplished in current state
"tntnet.log" is empty.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general