public class LogService
extends org.apache.log4j.AppenderSkeleton
| Constructor and Description |
|---|
LogService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent ev) |
void |
clear() |
void |
close() |
void |
doAppend(org.apache.log4j.spi.LoggingEvent event) |
List<DedupedLogEvent> |
getEvents() |
static LogService |
getInstance() |
boolean |
requiresLayout() |
static void |
startLogListener(AccumuloConfiguration conf,
String instanceId,
String hostAddress)
Place the host:port advertisement for the Monitor's Log4j listener in ZooKeeper
|
public static void startLogListener(AccumuloConfiguration conf, String instanceId, String hostAddress)
conf - configuration for the instanceinstanceId - instanceId for the instancehostAddress - Address that monitor process is bound topublic static LogService getInstance()
protected void append(org.apache.log4j.spi.LoggingEvent ev)
append in class org.apache.log4j.AppenderSkeletonpublic void close()
public void doAppend(org.apache.log4j.spi.LoggingEvent event)
doAppend in interface org.apache.log4j.AppenderdoAppend in class org.apache.log4j.AppenderSkeletonpublic boolean requiresLayout()
public List<DedupedLogEvent> getEvents()
public void clear()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.