This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

APP & WEB with different log file  RSS feed

 
Lester Tam
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Thanks
Lester
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!