com.logentries.jenkins
Class LogentriesTcpTokenWriter

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

public class LogentriesTcpTokenWriter
extends Object
implements LogentriesWriter

Writes lines to Logentries using the Token TCP input


Constructor Summary
LogentriesTcpTokenWriter(String token)
          Constructor
 
Method Summary
 void close()
          Closes this writer.
 void writeLogentry(String line)
          Write the given line to Logentries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogentriesTcpTokenWriter

public LogentriesTcpTokenWriter(String token)
                         throws IOException
Constructor

Parameters:
token - The token for the logfile
Throws:
IOException - If there was a problem connecting to logentries.
Method Detail

writeLogentry

public void writeLogentry(String line)
                   throws IOException
Write the given line to Logentries.

Specified by:
writeLogentry in interface LogentriesWriter
Parameters:
line - The line to write.
Throws:
IOException - If there was a problem writing the line.

close

public void close()
Closes this writer. TODO implement Closeable?

Specified by:
close in interface LogentriesWriter


Copyright © 2004-2013. All Rights Reserved.