[rt-users] RT logs in wrong timezone
Wagner Pereira
wpereira at pop-sp.rnp.br
Mon Aug 15 14:50:51 EDT 2011
Hi, Ruslan. I appreciate your answer.
Two points:
1. My syslog is running in other server. How to make my RT send logs to it?
2. Once I've changed from file to syslog, will the timezone issue be solved?
Regards,
--
### At PoP-SP/RNP, every day is an IPv6 day ###
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Fixo. +55 11 3091-8901
Móvel. +55 11 9923-9554
fone at RNP: 10158902
Em 15/08/2011 12:44, Ruslan Zakirov escreveu:
> It's by design. Don't use LogToFile in production. Use syslog and
> logging to screen (STDERR).
>
> On Mon, Aug 15, 2011 at 7:11 PM, Wagner Pereira<wpereira at pop-sp.rnp.br> wrote:
>> Hello, friends.
>>
>> I noticed that my rt.log has been populated in the wrong timezone (GMT). My
>> timezone is BRT -03:00.
>>
>> I found a discussion in which someone said to edit the RT.pm file and change
>> the gmtime.
>>
>> Then I found what follows. Can I change that? If yes, how can I?
>>
>> --------------------------------
>> sub InitLogging {
>> ...
>> my ($package, $filename, $line) = caller($frame);
>> $p{message} =~ s/(?:\r*\n)+$//;
>> my $str = "[".gmtime(time)."] [".$p{level}."]: $p{message}
>> ($filename:$line)\n";
>> ...
>> --------------------------------
>>
>> Regards,
>>
>> --
>> ### At PoP-SP/RNP, every day is an IPv6 day ###
>>
>> Wagner Pereira
>> PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
>> CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
>> http://www.pop-sp.rnp.br
>> Fixo. +55 11 3091-8901
>> Móvel. +55 11 9923-9554
>> fone at RNP: 10158902
>>
>> --------
>> RT Training Sessions (http://bestpractical.com/services/training.html)
>> * Chicago, IL, USA September 26& 27, 2011
>> * San Francisco, CA, USA October 18& 19, 2011
>> * Washington DC, USA October 31& November 1, 2011
>> * Melbourne VIC, Australia November 28& 29, 2011
>> * Barcelona, Spain November 28& 29, 2011
>>
>
>
More information about the rt-users
mailing list