Solved

web Application is not writing logs

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internet Explorer 11 Application Crash 6 40
PHP Session ID 5 93
Basics of Drool Rule Engine with few samples 2 57
Problem to go to Web page 2 100
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
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…
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…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

863 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

28 Experts available now in Live!

Get 1:1 Help Now