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 tag,
Sender sender) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
closeAll() |
void |
finalize() |
void |
flush() |
static void |
flushAll() |
static FluentLogger |
getLogger(String tag) |
static FluentLogger |
getLogger(String tag,
String host,
int port) |
static FluentLogger |
getLogger(String tag,
String host,
int port,
int timeout,
int bufferCapacity) |
String |
getName() |
boolean |
log(String label,
Map<String,Object> data) |
boolean |
log(String label,
Map<String,Object> data,
long timestamp) |
boolean |
log(String label,
String key,
Object value) |
boolean |
log(String label,
String key,
Object value,
long timestamp) |
String |
toString() |
public static FluentLogger getLogger(String tag)
public static FluentLogger getLogger(String tag, String host, int port)
public static FluentLogger getLogger(String tag, String host, int port, int timeout, int bufferCapacity)
public static void closeAll()
public static void flushAll()
public void flush()
public void close()
public String getName()
Copyright © 2013. All Rights Reserved.