Grails 2.2.3 : Logging - Log from Java Classes from All Packages into a log file -



Grails 2.2.3 : Logging - Log from Java Classes from All Packages into a log file -

i have configured logging in grails 2.2.3 log file has logs grails artifacts.

but trying to logs java classes. have defined

private static final logger log = logger.getlogger(getclass());

with logging info on console, not log logging file. using java classes external jar. note groovy , java classes under package structure

example:-

com.example.fileupload com.example.imagedownload com.example.datacapturing com.example.videoprocess

etc.

my config.groovy configuration follows info , error related logs groovy , java classes

info 'com.example' error 'com.example'

i able groovy classes log informations in logging file not java classes.

please allow me know how prepare it.

thanks in advance.

java logging log4j grails-2.2

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -