Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

web Application is not writing logs

Posted on 2014-04-23
3
181 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...))The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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…

792 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