• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log file path

 
ram kri
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using log4j api for creating log file

how can i give the path of creating log file in log4j.properties file


windows 2000 is my O.S
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did it this way:

log4j.appender.dest1.file=${catalina.base}${file.separator}logs${file.separator}my-app.log
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did it like this:

log4j.appender.standard.file=C:/CMWeb/Log/standard.log
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65125
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Other Open Source Projects forum.
 
LAT_kNos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah both of them works well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic