On Mon, Apr 16, 2012 at 1:09 PM, Afkham Azeez <[email protected]> wrote:

>
>
> On Sat, Apr 14, 2012 at 12:30 PM, Senaka Fernando <[email protected]> wrote:
>
>> *[2012-04-14 05:01:03,430]*  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin'
>> logged in at *[2012-04-14 05:01:03,0429]* from IP address 10.0.0.14
>>
>> Why do we need to have the time logged twice? and, interestingly why do
>> we have a leading zero in the number of milliseconds? that will never go
>> beyond 999, :-).
>>
>
> The 4 digits is due to a bug in the way we have defined the
> SimpleDateFormat. It has to be changed to;
> "'['yyyy-MM-dd HH:mm:ss,SSS*Z*']'" from "'['yyyy-MM-dd HH:mm:ss,SSS*S*
> ']'"
>
> It is not that the time is logged twice. It is obvious that the first
> timestamp is added by log4j, and that can be removed as per the user
> discretion using the log4j.properties file. However, the authentication
> logic is independent from log4j, and has to record all information
> necessary, independent of how the underlying logging framework is
> configured.
>
>
+1. The auditing records should be self contained.

Thanks,
Thilina



>
>
>>
>> Thanks,
>> Senaka.
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thilina Buddhika
Associate Technical Lead
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 77 44 88 727
blog : http://blog.thilinamb.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to