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 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()
|
tagPrefix
protected String tagPrefix
sender
protected Sender sender
FluentLogger
protected FluentLogger()
FluentLogger
protected FluentLogger(String tag,
Sender sender)
getLogger
public static FluentLogger getLogger(String tag)
getLogger
public static FluentLogger getLogger(String tag,
String host,
int port)
getLogger
public static FluentLogger getLogger(String tag,
String host,
int port,
int timeout,
int bufferCapacity)
closeAll
public static void closeAll()
flushAll
public static void flushAll()
log
public boolean log(String label,
String key,
Object value)
log
public boolean log(String label,
String key,
Object value,
long timestamp)
log
public boolean log(String label,
Map<String,Object> data)
log
public boolean log(String label,
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.