Class TeeConsoleLogFilter

java.lang.Object
hudson.console.ConsoleLogFilter
com.splunk.splunkjenkins.TeeConsoleLogFilter
All Implemented Interfaces:
ExtensionPoint, Serializable

@Extension(ordinal=2.147483646E9) public class TeeConsoleLogFilter extends ConsoleLogFilter implements Serializable
work like unix tee, one end is splunk http output, the other is console out only need to tee the write(int b) method, leave write(byte b[], int off, int len) and public void write(byte b[]) alone since they will call write(int b) the filter apply order is determined by descent ordinal order

Some log filter's flush or close function is no-op, causes TeeConsoleLogFilter cache not flushed. User an higher ordinal so it wil be created at last and will be the outermost filter, the feed log will be un-filtered.

See Also: