Solved

web Application is not writing logs

Posted on 2014-04-23
3
178 Views
Last Modified: 2014-05-08
I am porting my old web app(jdk 1.5) from oracle server to weblogic app server(jdk 1.6). application works fine but not writing logs, only creates empty file.
0
Comment
Question by:MehtaJasmin
  • 2
3 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 40019357
How do you write the logs? Are you using any logging framework? If yes please specify.
0
 

Author Comment

by:MehtaJasmin
ID: 40019798
yes, here is my property file. this is working on other machine but not mine

###################################################################################
############################## LOG4J PROPERTIES FILE ##############################
###################################################################################

# For DEVELOPMENT uncomment line below and comment all other log4j.rootCategory entry(s)
log4j.rootCategory=INFO,stdout,standardFile
log4j.configCheckDelay=900000
################################## CONSOLE ########################################
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}] %-5p [%c{1}] %m%n
log4j.defaultInitOverride=true
################################## STANDARD FILE ##################################
log4j.appender.standardFile=org.apache.log4j.RollingFileAppender
log4j.appender.standardFile.File=C://logs/file.log
log4j.appender.standardFile.MaxFileSize=1000KB
log4j.appender.standardFile.MaxBackupIndex=200
log4j.appender.standardFile.layout=org.apache.log4j.PatternLayout
log4j.appender.standardFile.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}] %-5p [%c{1}] %m%n
0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 40019832
this is working on other machine but not mine

Do these machines have the same configuration? If not then you will have to look to see what's different between your machine and the other machines.

A few more things you could do

1) Check that you're not using any additional loggers and there's conflict between them.
2) Add "-Dlog4j.debug=true" to the command line that starts the server and see if you notice any errors or warning messages.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now