KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > util > logging > FileHandler

java.util.logging
Class FileHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by java.util.logging.FileHandler
See Also:
Top Examples, Source Code

public void close()
           throws SecurityException
See Also:
StreamHandler
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[4]Write to log file
By Anonymous on 2003/10/14 17:35:41  Rate
FileHandler fh = new FileHandler ( "./myLog%g.xml", 10000000, 100, true ) ; 
 fh.publish ( new LogRecord ( l, "Hello World" )  ) ; 
 fh.flush (  ) ; 
 fh.close (  ) ;


public FileHandler()
            throws IOException,
                   SecurityException
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public FileHandler(String pattern)
            throws IOException,
                   SecurityException
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public FileHandler(String pattern,
                   boolean append)
            throws IOException,
                   SecurityException
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public FileHandler(String pattern,
                   int limit,
                   int count)
            throws IOException,
                   SecurityException
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public FileHandler(String pattern,
                   int limit,
                   int count,
                   boolean append)
            throws IOException,
                   SecurityException
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void publish(LogRecord record)
See Also:
StreamHandler
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags