public class LevelRemappingAppender extends
Appender that can remap ILoggingEvent Levels as they are
written.setRemapLevels(String),
setDestinationLogger(String)| Modifier and Type | Class and Description |
|---|---|
protected static class |
LevelRemappingAppender.AppendableLogger
Simple wrapper around a logger that can have events appended.
|
| Constructor and Description |
|---|
LevelRemappingAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(ILoggingEvent event) |
protected LevelRemappingAppender.AppendableLogger |
getLogger(String name) |
void |
setDestinationLogger(String destinationLogger)
Sets the destination logger that will be used to send remapped events.
|
void |
setRemapLevels(String remapLevels)
Set the remapped level.
|
protected void append(ILoggingEvent event)
protected LevelRemappingAppender.AppendableLogger getLogger(String name)
public void setDestinationLogger(String destinationLogger)
destinationLogger - the destinationLogger namepublic void setRemapLevels(String remapLevels)
remapLevels - Comma separated String of remapped levels in the form
"FROM->TO". For example, "DEBUG->TRACE,ERROR->WARN".Copyright © 2014 Pivotal Software, Inc.. All rights reserved.