This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes APP & WEB with different log file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "APP & WEB with different log file" Watch "APP & WEB with different log file" New topic

APP & WEB with different log file

Lester Tam
Ranch Hand

Joined: Jun 19, 2003
Posts: 31
Hello all,

I have an application which will use the weblogic as both app & web server in the same instance.
I want to use different logger to log down the stuff from app & web
but as some of the util classes are shared by both server, so i need a way to let the logger know who is calling it, the web or app

Something like:

class logManager() {
Logger getLogger () {

if (<<web server calling me>> {
return (weblogger);
}else {
return (applogger);

any idea ?

I agree. Here's the link:
subject: APP & WEB with different log file
It's not a secret anymore!