开发者

Glassfish logging to multiple .log files

We have Glassfish v2 server and some modules there: EJBs, web-apps, etc... We need logging from different modules goes to different log files, the same way like Tomcat or other app server allowed to do.

Glassfish forced us to use its own logging system with all logs in single server.log and viewed with admin console.

It may be a good practice for single application deployed with glassfish to have all logs in one file, but not for 10 different apps working on same server

I tried to configure log4j in GF, it helped and I am able to write multiple files, but it had one disadvantage - if log4j installed such way it may allow you to write to multiple log files, but it requeires server/domain restart to modify log level, log file (any log related config in log4 conf)


It is possible to use anything in 开发者_Go百科Glassfish that allowes me to:

  1. Write logs from different loggers to different .log files? and
  2. Modify log levels, log appenders etc without server restart (like in tomcat I can just redeploy the .war)??


It seems that default Glassfish logging utility does not allow for this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜