public class TaskLogger extends Object
Constructor and Description |
---|
TaskLogger(TaskId taskId,
String hostname) |
Modifier and Type | Method and Description |
---|---|
void |
activateLogs(AppenderProvider logSink) |
void |
close() |
File |
createFileAppender(File pathToFolder) |
File |
createLogFilePath(File pathToFolder) |
PrintStream |
getErrorSink() |
TaskLogs |
getLogs() |
String |
getName() |
PrintStream |
getOutputSink() |
void |
getStoredLogs(AppenderProvider logSink) |
void |
resetLogContextForImmediateService() |
public String getName()
public TaskLogs getLogs()
public File createLogFilePath(File pathToFolder) throws IOException
IOException
public File createFileAppender(File pathToFolder) throws IOException
IOException
public PrintStream getOutputSink()
public PrintStream getErrorSink()
public void activateLogs(AppenderProvider logSink)
public void getStoredLogs(AppenderProvider logSink)
public void resetLogContextForImmediateService()
public void close()