This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatically switch of Log level from INFO to FINER

Anand Kumar Singh
Posts: 22
  • 0
  • 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: 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|
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic