• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Automatically switch of Log level from INFO to FINER

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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|


 
Ranch Hand
Posts: 32
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this might be help you

http://www.oracle.com/technology/tech/java/sqlj_jdbc/pdf/11.1%20logging%20white%20paper.pdf


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic