Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

send server output to log file  RSS feed

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Can anyone tell me how to send the data that are printed on RAD (Rational Application Developer) to a log/txt file. My understanding is that RAD uses apache commons-logging as the wrapper class and it makes use of JDK14Logger to prining the log details on RAD console. Is is possible to configure the setting so that the log details will get printed on a file rather than displaying on the console window. I created a file named logging.properties and kept it in the server classpath

# logging.properties#
jdk handlershandlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler
# default log level
.level=INFO
# log level for the "DEBUG" logger
DEBUG.level=FINE
# log file name for the FileHandler
java.util.logging.FileHandler.pattern=c:/app.log

but its still not working

Appretiate any comments / suggestions ..

Thanks,
Rajeev.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i didnt look at the Admin Console.. The option was there to set it.. sorry guys !!
 
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!