Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 15th, 2015, 12:30 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default LOG4J in a tomcat webapplication on a server doesn't create log file

I have a web application in tomcat8, and i insert in my code log4j.
In my local tomcat8 in my pc the application create with log4j the ....log file
in my home in ubuntu14 (linux)

i have cretaed the same situation on server on aruba.it with a machine with ubuntu14 and tomcat8
but on the server on aruba.it the file ......log has been created.

in log4j.properties i use this:
#LOGGER
log4j.rootCategory=DEBUG, APPENDER_OUT, APPENDER_FILE

#APPENDER_OUT
log4j.appender.APPENDER_OUT=org.apache.log4j.Conso leAppender
log4j.appender.APPENDER_OUT.layout=org.apache.log4 j.PatternLayout
log4j.appender.APPENDER_OUT.layout.ConversionPatte rn=%5p [%t] (%F:%L) \u2013 %m%n

#APPENDER_FILE
log4j.appender.APPENDER_FILE=org.apache.log4j.Roll ingFileAppender
log4j.appender.APPENDER_FILE.File=<name log file>.log
log4j.appender.APPENDER_FILE.MaxFileSize=100KB
log4j.appender.APPENDER_FILE.MaxBackupIndex=1
log4j.appender.APPENDER_FILE.layout=org.apache.log 4j.PatternLayout
log4j.appender.APPENDER_FILE.layout.ConversionPatt ern=%d{yyyy-MM-dd HH:mm:ss} %p [%C:%L] - %m%n


why?
Can help me please?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log4j load balanced tomcat pointing same webapp wesley Apache Tomcat 0 April 24th, 2008 08:40 PM
Log4J question: loading properties file in as DanRed J2EE 4 December 4th, 2007 11:05 PM
Can't get Log to write the Log.txt file jnbutler BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 July 31st, 2007 04:04 AM
Audit trailing using SQL server log file madhukp SQL Server 2000 1 April 4th, 2006 01:11 PM
Can't Create New WebApplication in ASP.Net 1.0 dominicthma ASP.NET 1.x and 2.0 Application Design 1 March 28th, 2006 05:44 PM



All times are GMT -4. The time now is 06:09 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.