• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

creating application log at path specified in Linux  RSS feed

 
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys...

i'm trying to create log file for my application but its not getting created at specified path instead it is creating log file at root

i'm using linux operating system.

how should i specify the path.
above is the log4j.peroperties file where i'm specifing the path.



waiting for your valuable suggestion...

thanks in advance,
[ January 31, 2007: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use this

 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jigar Naik:

log4j.appender.A1.File=//usr//jboss-4.0.2//server//default//log//ToollOG//Tools.log



" // " double forward slash is used for writing comments in Java.

For the path, you could use double backward slash or single forward.

Example:

  • C:\\usr\\jboss-4.0.2\\server\\default\\log\\ToollOG\\Tools.log

  • OR
  • C:/usr/jboss-4.0.2/server/default/log/ToollOG/Tools.log
    [ January 31, 2007: Message edited by: Saif uddin ]
  •  
    Don't get me started about those stupid light bulbs.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!