org.fluentd.logger
Class FluentLogger

java.lang.Object
  extended by org.fluentd.logger.FluentLogger

public class FluentLogger
extends Object


Field Summary
protected  Sender sender
           
protected  String tagPrefix
           
 
Constructor Summary
protected FluentLogger()
           
protected FluentLogger(String tag, Sender sender)
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tagPrefix

protected String tagPrefix

sender

protected Sender sender
Constructor Detail

FluentLogger

protected FluentLogger()

FluentLogger

protected FluentLogger(String tag,
                       Sender sender)
Method Detail

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 © 2012. All Rights Reserved.