Java Code Examples for org.gradle.api.logging.LogLevel#LIFECYCLE
The following examples show how to use
org.gradle.api.logging.LogLevel#LIFECYCLE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogLevelConverter.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Maps a Logback log level and optional marker to a Gradle log level. * Returns null if there is no equivalent Gradle log level (such as for TRACE). */ @Nullable public static LogLevel toGradleLogLevel(Level level, @Nullable Marker marker) { switch(level.toInt()) { case Level.TRACE_INT: return null; case Level.DEBUG_INT: return LogLevel.DEBUG; case Level.INFO_INT: if (marker == Logging.LIFECYCLE) { return LogLevel.LIFECYCLE; } if (marker == Logging.QUIET) { return LogLevel.QUIET; } return LogLevel.INFO; case Level.WARN_INT: return LogLevel.WARN; case Level.ERROR_INT: return LogLevel.ERROR; default: throw new IllegalArgumentException("Don't know how to map Logback log level '" + level + "' to a Gradle log level"); } }
Example 2
Source File: LogLevelConverter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Maps a Logback log level and optional marker to a Gradle log level. * Returns null if there is no equivalent Gradle log level (such as for TRACE). */ @Nullable public static LogLevel toGradleLogLevel(Level level, @Nullable Marker marker) { switch(level.toInt()) { case Level.TRACE_INT: return null; case Level.DEBUG_INT: return LogLevel.DEBUG; case Level.INFO_INT: if (marker == Logging.LIFECYCLE) { return LogLevel.LIFECYCLE; } if (marker == Logging.QUIET) { return LogLevel.QUIET; } return LogLevel.INFO; case Level.WARN_INT: return LogLevel.WARN; case Level.ERROR_INT: return LogLevel.ERROR; default: throw new IllegalArgumentException("Don't know how to map Logback log level '" + level + "' to a Gradle log level"); } }
Example 3
Source File: LogLevelConverter.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Maps a Logback log level and optional marker to a Gradle log level. * Returns null if there is no equivalent Gradle log level (such as for TRACE). */ @Nullable public static LogLevel toGradleLogLevel(Level level, @Nullable Marker marker) { switch(level.toInt()) { case Level.TRACE_INT: return null; case Level.DEBUG_INT: return LogLevel.DEBUG; case Level.INFO_INT: if (marker == Logging.LIFECYCLE) { return LogLevel.LIFECYCLE; } if (marker == Logging.QUIET) { return LogLevel.QUIET; } return LogLevel.INFO; case Level.WARN_INT: return LogLevel.WARN; case Level.ERROR_INT: return LogLevel.ERROR; default: throw new IllegalArgumentException("Don't know how to map Logback log level '" + level + "' to a Gradle log level"); } }
Example 4
Source File: LogLevelConverter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Maps a Logback log level and optional marker to a Gradle log level. * Returns null if there is no equivalent Gradle log level (such as for TRACE). */ @Nullable public static LogLevel toGradleLogLevel(Level level, @Nullable Marker marker) { switch(level.toInt()) { case Level.TRACE_INT: return null; case Level.DEBUG_INT: return LogLevel.DEBUG; case Level.INFO_INT: if (marker == Logging.LIFECYCLE) { return LogLevel.LIFECYCLE; } if (marker == Logging.QUIET) { return LogLevel.QUIET; } return LogLevel.INFO; case Level.WARN_INT: return LogLevel.WARN; case Level.ERROR_INT: return LogLevel.ERROR; default: throw new IllegalArgumentException("Don't know how to map Logback log level '" + level + "' to a Gradle log level"); } }
Example 5
Source File: ProgressStartEvent.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ProgressStartEvent(long operationId, Long parentOperationId, long timestamp, String category, String description, String shortDescription, String loggingHeader, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.parentOperationId = parentOperationId; this.description = description; this.shortDescription = shortDescription; this.loggingHeader = loggingHeader; this.status = status; }
Example 6
Source File: ProgressStartEvent.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ProgressStartEvent(long operationId, Long parentOperationId, long timestamp, String category, String description, String shortDescription, String loggingHeader, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.parentOperationId = parentOperationId; this.description = description; this.shortDescription = shortDescription; this.loggingHeader = loggingHeader; this.status = status; }
Example 7
Source File: GradleRunnerInteractionWrapper.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
/** * @return the log level. This determines the detail level of information reported via reportLiveOutput and reportExecutionFinished. */ public LogLevel getLogLevel() { GradleRunnerInteractionVersion1.LogLevel logLevel = interactionVersion1.getLogLevel(); switch (logLevel) { case Quiet: return LogLevel.QUIET; case Lifecycle: return LogLevel.LIFECYCLE; case Debug: return LogLevel.DEBUG; } return LogLevel.LIFECYCLE; }
Example 8
Source File: ProgressStartEvent.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ProgressStartEvent(long operationId, Long parentOperationId, long timestamp, String category, String description, String shortDescription, String loggingHeader, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.parentOperationId = parentOperationId; this.description = description; this.shortDescription = shortDescription; this.loggingHeader = loggingHeader; this.status = status; }
Example 9
Source File: ProgressStartEvent.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ProgressStartEvent(long operationId, Long parentOperationId, long timestamp, String category, String description, String shortDescription, String loggingHeader, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.parentOperationId = parentOperationId; this.description = description; this.shortDescription = shortDescription; this.loggingHeader = loggingHeader; this.status = status; }
Example 10
Source File: GradleRunnerInteractionWrapper.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * @return the log level. This determines the detail level of information reported via reportLiveOutput and reportExecutionFinished. */ public LogLevel getLogLevel() { GradleRunnerInteractionVersion1.LogLevel logLevel = interactionVersion1.getLogLevel(); switch (logLevel) { case Quiet: return LogLevel.QUIET; case Lifecycle: return LogLevel.LIFECYCLE; case Debug: return LogLevel.DEBUG; } return LogLevel.LIFECYCLE; }
Example 11
Source File: ProgressEvent.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressEvent(long operationId, long timestamp, String category, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; }
Example 12
Source File: ProgressCompleteEvent.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressCompleteEvent(long operationId, long timestamp, String category, String description, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; this.description = description; }
Example 13
Source File: ProgressEvent.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressEvent(long operationId, long timestamp, String category, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; }
Example 14
Source File: ProgressCompleteEvent.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressCompleteEvent(long operationId, long timestamp, String category, String description, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; this.description = description; }
Example 15
Source File: EmbeddedDaemonGradleExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private BuildActionParameters createBuildActionParameters() { return new DefaultBuildActionParameters(daemonClientServices.get(BuildClientMetaData.class), getStartTime(), System.getProperties(), getEnvironmentVars(), getWorkingDir(), LogLevel.LIFECYCLE); }
Example 16
Source File: EmbeddedDaemonGradleExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private BuildActionParameters createBuildActionParameters() { return new DefaultBuildActionParameters(daemonClientServices.get(BuildClientMetaData.class), getStartTime(), System.getProperties(), getEnvironmentVars(), getWorkingDir(), LogLevel.LIFECYCLE); }
Example 17
Source File: ProgressCompleteEvent.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressCompleteEvent(long operationId, long timestamp, String category, String description, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; this.description = description; }
Example 18
Source File: ProgressEvent.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressEvent(long operationId, long timestamp, String category, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; }
Example 19
Source File: ProgressEvent.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressEvent(long operationId, long timestamp, String category, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; }
Example 20
Source File: ProgressCompleteEvent.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ProgressCompleteEvent(long operationId, long timestamp, String category, String description, String status) { super(timestamp, category, LogLevel.LIFECYCLE); this.operationId = operationId; this.status = status; this.description = description; }