org.fluentd.logger
Class FluentLogger
java.lang.Object
org.fluentd.logger.FluentLogger
public class FluentLogger
- extends Object
Method Summary |
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)
|
String |
getName()
|
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)
|
String |
toString()
|
tagPrefix
protected String tagPrefix
sender
protected Sender sender
FluentLogger
protected FluentLogger()
FluentLogger
protected FluentLogger(String tagPrefix,
Sender sender)
getLogger
public static FluentLogger getLogger(String tagPrefix)
getLogger
public static FluentLogger getLogger(String tagPrefix,
String host,
int port)
getLogger
public static FluentLogger getLogger(String tagPrefix,
String host,
int port,
int timeout,
int bufferCapacity)
closeAll
public static void closeAll()
flushAll
public static void flushAll()
log
public boolean log(String tag,
String key,
Object value)
log
public boolean log(String tag,
String key,
Object value,
long timestamp)
log
public boolean log(String tag,
Map<String,Object> data)
log
public boolean log(String tag,
Map<String,Object> data,
long timestamp)
flush
public void flush()
close
public void close()
getName
public String getName()
toString
public String toString()
- Overrides:
toString
in class Object
finalize
public void finalize()
- Overrides:
finalize
in class Object
Copyright © 2013. All Rights Reserved.