[Esapi-user] ESAPI Logging

Jörg Liedl joerg.liedl at student.htw-berlin.de
Fri Mar 23 22:55:27 UTC 2012


Hi Chris,
ok, i managed to get it run, with the

now i see in my logfile:
23:53:03,982 deactivated [bachelor_demo:SecurityProviderLoader] 
(ajp--127.0.0.1-8009-8) [SECURITY AUDIT Anonymous:null at unknown -> 
/bachelor_demo/SecurityProviderLoader] No Encryptor.PreferredJCEProvider 
specified.

23:53:04,060 Information [bachelor_demo:TestController] 
(ajp--127.0.0.1-8009-8) [SECURITY SUCCESS Anonymous:null at unknown -> 
/mydemoapp/TestController] logged successful in.

but i still can't see anything in my logfile, which i declared here:
Logger.LogFileName=/home/joergi/dev/bachelor/logging/ESAPI_logging_file



what is wrong?

Thanks Jörg


Am 23.03.2012 16:43, schrieb Jörg Liedl:
> Hi,
>
> my esapi logger is not correctly working...
> in my *ESAPI.properties* i use:
>
> *ESAPI.Logger=org.owasp.esapi.reference.JavaLogFactory*
>
> (the log4j is making bad errors during deployment - this should work 
> too, right?)
>
> *Logger.ApplicationName=my_logging_demo*  (thats the name i have 
> declared in my pom as:
> <artifactId>my_logging_demo</artifactId>  right?
>
> then:
> *Logger.LogEncodingRequired=false *      # this was pre selected
> *Logger.LogApplicationName=true*         # this was pre selected
> *Logger.LogServerIP=true*                      # this was pre selected
>
> and i have this as my path
> *Logger.LogFileName=ESAPI_logging_file*
> the empty file exists in my .esapi folder
>
> when i do something in my UserProvider (EJB) i have:
>
> *    private final Logger logger = ESAPI.getLogger("UserProvider");*
>
> and i write with this function to the logger:
>
> *        logger.info(Logger.EVENT_SUCCESS, "user xyz");*
>
> and something like:
> *    logger.error(Logger.SECURITY_FAILURE, "logged in of user xyz 
> failed.");*
>
> but nothing is happening...
> and yes ESAPI is working, i have different esapi functions which are 
> all working...
>
> I hope somebody knows a quick answer, because i have to hand in this 
> application on monday :(
>
> thanks
>
>
> Jörg
>
>
>
> _______________________________________________
> Esapi-user mailing list
> Esapi-user at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/esapi-user

-- 
Jörg Liedl

Mobile:  +49 (0) 176 77 640 540

Xing:    https://xing.com/profile/Joerg_Liedl
FB:      https://fb.com/joerg.liedl
Twitter: https://twitter.com/joerg_liedl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/esapi-user/attachments/20120323/988b4ecf/attachment.html>


More information about the Esapi-user mailing list