public class FluentLogger extends Object
Modifier and Type | Field and Description |
---|---|
protected Sender |
sender |
protected String |
tagPrefix |
Modifier | Constructor and Description |
---|---|
protected |
FluentLogger() |
protected |
FluentLogger(String tagPrefix,
Sender sender) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
closeAll() |
void |
finalize() |
void |
flush() |
static void |
flushAll() |
static FluentLogger |
getLogger(String tagPrefix) |
static FluentLogger |
getLogger(String tagPrefix,
String host,
int port) |
static FluentLogger |
getLogger(String tagPrefix,
String host,
int port,
int timeout,
int bufferCapacity) |
static FluentLogger |
getLogger(String tagPrefix,
String host,
int port,
int timeout,
int bufferCapacity,
Reconnector reconnector) |
String |
getName() |
Sender |
getSender() |
boolean |
isConnected() |
boolean |
log(String tag,
Map<String,Object> data) |
boolean |
log(String tag,
Map<String,Object> data,
long timestamp) |
boolean |
log(String tag,
String key,
Object value) |
boolean |
log(String tag,
String key,
Object value,
long timestamp) |
void |
removeErrorHandler() |
void |
setErrorHandler(ErrorHandler errorHandler) |
String |
toString() |
public static FluentLogger getLogger(String tagPrefix)
public static FluentLogger getLogger(String tagPrefix, String host, int port)
public static FluentLogger getLogger(String tagPrefix, String host, int port, int timeout, int bufferCapacity)
public static FluentLogger getLogger(String tagPrefix, String host, int port, int timeout, int bufferCapacity, Reconnector reconnector)
public static void closeAll()
public static void flushAll()
public void flush()
public void close()
public String getName()
public boolean isConnected()
public void setErrorHandler(ErrorHandler errorHandler)
public void removeErrorHandler()
public Sender getSender()
Copyright © 2011-2015. All Rights Reserved.