Am 28.05.2012 18:38, schrieb ArtemGr:
> Tommi Mäkitalo<tommi@...>  writes:
>> Hello,
>>
>> these days I reimplemented the configuration of cxxtools logging using
>> the serialization framework, so that the configuration is now read from
>> a xml file instead of a properties file.
>>
>> I did that already with tntnet and now I integrated both parts, so that
>> there is a single tntnet.xml, which configures tntnet as well as
>> logging. No separate tntnet.conf and tntnet.properties are needed any more.
> What about logging levels?
> I've used them to get INFO messages from some modules and skip them from 
> others.
> Now I no longer see the INFO messages in the logs.
>
> Also, it feels as if giving the same file to accessLog and errorLog is not
> supported. When I do this:
>    <accessLog>/var/log/tntnet/tntnet.log</accessLog>
>    <errorLog>/var/log/tntnet/tntnet.log</errorLog>
> I get an empty /var/log/tntnet/tntnet.log without messages.
>
> Also, why the log files are reset (size becomes 0 when tntnet starts)? 
> Shouldn't
> they be append-only and logrotated?
>
Logging should work like before. It is just configured differently. I 
have this in my tntnet.xml to configure logging:

<logging>
<rootlogger>INFO</rootlogger>

<loggers>
<logger>
<category>tntnet</category>
<level>INFO</level>
</logger>
<logger>
<category>component.foo</category>
<level>INFO</level>
</logger>
</loggers>

It should work. Xml is just a little more verbose.

I haven't changed anything in accessLog and errorLog. I wonder how it 
can behave different than before. The behaviour, you describe is wrong. 
It may well be a bug but the bug should have been there before. I will 
check it.

Rotating logs is not implemented. But it is a good idea. It should be 
implemented. I will look at it also.


Tommi

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

Reply via email to