public class LevelRemappingAppender extends
Appender
that can remap ILoggingEvent
Level
s 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()
Create a new
LevelRemappingAppender . |
LevelRemappingAppender(String destinationLogger)
Create a new
LevelRemappingAppender with a specific destination logger. |
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.
|
public LevelRemappingAppender()
LevelRemappingAppender
.public LevelRemappingAppender(String destinationLogger)
LevelRemappingAppender
with a specific destination logger.destinationLogger
- the destination loggerprotected 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 © 2015 Pivotal Software, Inc.. All rights reserved.