QuickServer
v1.4.7

org.quickserver.util.logging
Class SimpleJDKLoggingHook

java.lang.Object
  extended byorg.quickserver.util.logging.SimpleJDKLoggingHook
All Implemented Interfaces:
InitServerHook

public class SimpleJDKLoggingHook
extends java.lang.Object
implements InitServerHook

SimpleLoggingHook - may be used to setup quick logging for a server.

This will write log using SimpleTextFormatter to log\<ServerName>_%u%g.txt with maximum of 20 rolling files, each of 1MB. -Dorg.quickserver.util.logging.SimpleJDKLoggingHook.Level=FINE may be used to control the logging level to file. -Dorg.quickserver.util.logging.SimpleJDKLoggingHook.Count=20 may be used to control the number of files to use.

Since:
1.4.6
Author:
Akshathkumar Shetty

Constructor Summary
SimpleJDKLoggingHook()
           
 
Method Summary
 void handleInit(QuickServer quickserver)
          Method called to perform any initialisation
 java.lang.String info()
          Information about the server hook.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJDKLoggingHook

public SimpleJDKLoggingHook()
Method Detail

info

public java.lang.String info()
Description copied from interface: InitServerHook
Information about the server hook.

Specified by:
info in interface InitServerHook

handleInit

public void handleInit(QuickServer quickserver)
                throws java.lang.Exception
Description copied from interface: InitServerHook
Method called to perform any initialisation

Specified by:
handleInit in interface InitServerHook
Parameters:
quickserver - is the server to which hook belongs to.
Throws:
java.lang.Exception

QuickServer
v1.4.7

Copyright © 2003-2006 QuickServer.org