aspose file tools*
The moose likes Other Application Frameworks and the fly likes Automatically switch of Log level from INFO to FINER Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Automatically switch of Log level from INFO to FINER" Watch "Automatically switch of Log level from INFO to FINER" New topic
Author

Automatically switch of Log level from INFO to FINER

Anand Kumar Singh
Greenhorn

Joined: Oct 18, 2007
Posts: 22
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|

SCJP 5, SCWCD 5, SCBCD 5,
SCEA 5,
OCUP Fundamental,
OCUP Intermediate,
OCUP Advanced,
IBM Certified Solution Designer - Object Oriented Analysis and Design, vUML 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Automatically switch of Log level from INFO to FINER