File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating application log at path specified in Linux

 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • 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 ]
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use this

 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • 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 ]
  •  
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic