/*
* $Id: RootLogDevice.java,v 1.5 2002/09/16 08:05:02 jkl Exp $
*
* Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
*
* Use is subject to license terms, as defined in
* Anvil Sofware License, Version 1.1. See LICENSE
* file, or http://njet.org/license-1.1.txt
*/
package anvil;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import anvil.server.Zone;
/**
* class RootLogDevice
*
* @author Jani Lehtimki
*/
public class RootLogDevice implements LogDevice
{
public static final RootLogDevice INSTANCE = new RootLogDevice();
private LogLayout _layout = new anvil.server.basic.BasicLogLayout();
public RootLogDevice()
{
}
public String toString()
{
return "@stderr " + _layout.toString();
}
public void initialize(Zone zone)
{
}
public void stop()
{
}
public void setLayout(LogLayout layout)
{
}
public void logEvent(LogEvent event)
{
System.err.print(_layout.format(event));
}
}
|