Servertec   Logger
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Documentation
Conventions
Users
Reference
iServer API
AccessLogEntry
Codecs
Connection
ConnectionPool...
DString
ErrorLogEntry
EventLogEntry
FileUpload
iws
Logger
MultiPartForm
QuickSort
Realm
Utils

Servlet API
CGI
SSI
Servlets
Logs

Samples
Sales
Legal
Feedback

 

java.lang.Object
 |
 +--stec.iws.Logger

public abstract class Logger implement Runnable

Defines methods used by iServer Logger service.

Methods

Method Description
init Called by iServer to initialize Logger service.
log Used to log an access, event or error log entry.
output Called by Logger service to output an access, event or error log entry.
wrapup Called by iServer when stopping Logger service.

init

Called to log an access, event or error log entry.

Syntax

public void init(Hashtable parameters)

Parameters

parameters a hashtable containing parameters parsed from basedir/config/logger.ini.

Returns

Nothing

Throws

Exception any exception thrown.

Example

public void init(Hashtable parameters) throws Exception
{
  super.init(parameters);

  Object filename = parameters.get("file_name");
  if(filename == null)
  {
    filename = "log.dat";
  }

  open_files((String)file_name);
}


log

Used to log an access, event or error log entry.

Syntax

public synchronized void log(AccessLogEntry accessEntry)
public synchronized void log(EventLogEntry eventEntry)
public synchronized void log(ErrorLogEntry errorEntry)

Parameters

accessEntry an access log entry.
eventEntry an event log entry.
errorEntry an error log entry.

Returns

Nothing

Throws

Nothing

Example

log(msg);

output

Called by Logger service to output an access, event or error log entry.

Syntax

public abstract void output(AccessLogEntry accessEntry) throws Exception
public abstract void output(EventLogEntry eventEntry) throws Exception
public abstract void output(ErrorLogEntry errorEntry) throws Exception

Parameters

accessEntry an access log entry.
eventEntry an event log entry.
errorEntry an error log entry.

Returns

Nothing

Throws

Exception any exception thrown.

Example

public void output(AccessLogEntry entry) throws Exception
{
  logAccess(entry);
}


wrapup

Called by iServer when stopping Logger service.

Syntax

public synchronized void wrapup()

Parameters

None

Returns

Nothing

Throws

Nothing

Example

public synchronized wrapup()
{
  super.wrapup();
  close_files();
}

 top of page
 Built with iScript Copyright © 1997-1999 Servertec. All rights reserved.
Last Modified: Mon Jun 28 23:14:48 EDT 1999