Subscribe to RSS Subscribe to Comments

Programming stuff: Bash, Linux, SQL and Java

get rid of class information from logging

if you want to remove class and method information line when you do logging with java.util.logging , then you have 2 choices:
1. subClass your handler and make your own publish method
or
2. subClass the formatter you pass to the handler and modify the format(LogRecord record) method.

i did the second one.
here it is:
public String format(LogRecord lr){
                           return lr.getMessage()+"\n";
                   }

Based on FluidityTheme Redesigned by Kaushal Sheth Sponsored by Send Flowers