}
public void initialize(Zone zone)
{
LoggingPreferences prefs = zone.getLoggingPreferences();
String s = prefs.getFormat();
if (s.equals("basic")) {
_layout = new BasicLogLayout(prefs);
} else if (s.indexOf('.')>0) {
try {
_layout = (LogLayout)Class.forName(s).newInstance();
} catch (ConfigurationError e) {
e.fillInStackTrace();
throw e;
} catch (Throwable t) {
throw new ConfigurationError("Couldn't create log layout: "+s+", reason: "+t.toString());
}
} else {
throw new ConfigurationError("Unknown log layout '"+_layout+"'");
}
_target = prefs.getTarget();
if (_target.equals("stderr")) {
_output = System.err;
_flush = false;