Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatically switch of Log level from INFO to FINER

 
Anand Kumar Singh
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with logger in my application. I have implemented Java. Api java.util.logging. for logging . I set my log level to INFO and logfile appender everything is working fine.

There is one scheduler which run every night , after running that scheduler the log lever automatically switch to FINE or sometime FINER. Because of that its generation lots of unnecessary FINE or FINERlog files.

I debug a lot but didn’t get any solution, can anyone please suggest me any way to solve this problem?

Below is a sample of log file where log level is getting change form INFO to FINER.


2009-04-01 02:12:13:171|INFO|'Report file '/web/prd/secure/reports/i053/
2009-04-01 02:12:13:680|INFO|'Report file '/web/prd/secure/reports/i053/
2009-04-01 02:12:13:680|INFO|'Report file '/web/prd/secure/reports/i053/
2009-04-01 02:29:50:210|INFO|'End of processing...'|JobDeleteContentProcessing|
2009-04-01 06:35:35:160|SEVERE|'java.lang.IllegalStateException: setAttribute: Session already invalidated
2009-04-01 07:26:08:231|SEVERE|'Error UUID: 421604e6-957f-4e85-a3c4-6f935dbf8e66
2009-04-01 07:26:08:250|SEVERE|'org.springframework.dao.InvalidDataAccessApiUsageException: nested exception is org.hibernate.TransientObjectException: '|BaseExceptionHandler|
2009-04-01 08:06:01:321|SEVERE|'Error UUID: 205df9f0-4156-4bfa-baba-fac4b5aad233 |ViewPrefService|findViewByLogin|
2009-04-01 08:06:01:325|SEVERE|'org.springframework.dao.InvalidDataAccessApiUsageException: nested exception is org.hibernate.TransientObjectException:
2009-04-01 08:22:44:180|SEVERE|'ClientAbortException: java.net.SocketException: Broken pipe'|BaseExceptionHandler|
2009-04-01 08:29:53:500|FINER|'End with success'|LoginServiceImpl|findByLogin
2009-04-01 08:29:53:501|FINER|'End with success'|LoginServiceImpl|findByLogin
2009-04-01 08:29:54:010|FINER|'Entering in doView()'|MainPageAction|doView|5b
2009-04-01 08:29:54:011|FINER|'Entering Method'|MainPageForm|getTransferBean|
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic