use of org.gradle.internal.operations.OperationIdentifier in project gradle by gradle.
the class OutputEventListenerBackedLogger method log.
private void log(LogLevel logLevel, Throwable throwable, String message) {
OperationIdentifier buildOperationId = CurrentBuildOperationRef.instance().getId();
LogEvent logEvent = new LogEvent(clock.getCurrentTime(), name, logLevel, message, throwable, buildOperationId);
OutputEventListener outputEventListener = context.getOutputEventListener();
try {
outputEventListener.onOutput(logEvent);
} catch (Throwable e) {
// fall back to standard out
e.printStackTrace(System.out);
}
}
Aggregations