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.videoprocessetc.
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
Post a Comment