com.logentries.jenkins
Class AsynchronousLogentriesWriter

java.lang.Object
  extended by com.logentries.jenkins.AsynchronousLogentriesWriter
All Implemented Interfaces:
LogentriesWriter

public class AsynchronousLogentriesWriter
extends Object
implements LogentriesWriter

Class to write logs to logentries asynchronously


Constructor Summary
AsynchronousLogentriesWriter(LogentriesWriter leWriter)
          Constructor.
 
Method Summary
 void close()
          Closes this writer.
 void writeLogentry(String line)
          Writes the given string to logentries.com asynchronously.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousLogentriesWriter

public AsynchronousLogentriesWriter(LogentriesWriter leWriter)
Constructor.

Parameters:
leWriter - Used to write entries to Logentries.
Method Detail

writeLogentry

public void writeLogentry(String line)
Writes the given string to logentries.com asynchronously. It would be possible to take an array of bytes as a parameter but we want to make sure it is UTF8 encoded.

Specified by:
writeLogentry in interface LogentriesWriter
Parameters:
line - The line to write.

close

public void close()
Closes this writer.

Specified by:
close in interface LogentriesWriter


Copyright © 2004-2013. All Rights Reserved.