Solved

web Application is not writing logs

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Define alias for servlet 5 52
DotNetNuke Redirect 3 186
Customer support / help desk app 4 104
Tech Writing Terminology - Pane or Panel? 8 87
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…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
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.

776 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