Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
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:

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

log4j.appender.APPENDER_FILE=org.apache.log4j.Roll ingFileAppender
log4j.appender.APPENDER_FILE.File=<name log file>.log
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

Can help me please?

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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.