Java Code Examples for org.gradle.api.logging.LogLevel#values()
The following examples show how to use
org.gradle.api.logging.LogLevel#values() .
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: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private LogLevel getCurrentLogLevel() { for (LogLevel level : LogLevel.values()) { if (getLogger().isEnabled(level)) { return level; } } throw new AssertionError("could not determine current log level"); }
Example 2
Source File: DefaultTestLoggingContainer.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultTestLoggingContainer(Instantiator instantiator) { for (LogLevel level: LogLevel.values()) { perLevelTestLogging.put(level, instantiator.newInstance(DefaultTestLogging.class)); } setEvents(EnumSet.of(TestLogEvent.FAILED)); setExceptionFormat(TestExceptionFormat.SHORT); getInfo().setEvents(EnumSet.of(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR)); getInfo().setStackTraceFilters(EnumSet.of(TestStackTraceFilter.TRUNCATE)); getDebug().setEvents(EnumSet.allOf(TestLogEvent.class)); getDebug().setMinGranularity(0); getDebug().setStackTraceFilters(EnumSet.noneOf(TestStackTraceFilter.class)); }
Example 3
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private LogLevel getCurrentLogLevel() { for (LogLevel level : LogLevel.values()) { if (getLogger().isEnabled(level)) { return level; } } throw new AssertionError("could not determine current log level"); }
Example 4
Source File: DefaultTestLoggingContainer.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultTestLoggingContainer(Instantiator instantiator) { for (LogLevel level: LogLevel.values()) { perLevelTestLogging.put(level, instantiator.newInstance(DefaultTestLogging.class)); } setEvents(EnumSet.of(TestLogEvent.FAILED)); setExceptionFormat(TestExceptionFormat.SHORT); getInfo().setEvents(EnumSet.of(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR)); getInfo().setStackTraceFilters(EnumSet.of(TestStackTraceFilter.TRUNCATE)); getDebug().setEvents(EnumSet.allOf(TestLogEvent.class)); getDebug().setMinGranularity(0); getDebug().setStackTraceFilters(EnumSet.noneOf(TestStackTraceFilter.class)); }
Example 5
Source File: Test.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private LogLevel getCurrentLogLevel() { for (LogLevel level : LogLevel.values()) { if (getLogger().isEnabled(level)) { return level; } } throw new AssertionError("could not determine current log level"); }
Example 6
Source File: DefaultTestLoggingContainer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultTestLoggingContainer(Instantiator instantiator) { for (LogLevel level: LogLevel.values()) { perLevelTestLogging.put(level, instantiator.newInstance(DefaultTestLogging.class)); } setEvents(EnumSet.of(TestLogEvent.FAILED)); setExceptionFormat(TestExceptionFormat.SHORT); getInfo().setEvents(EnumSet.of(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR)); getInfo().setStackTraceFilters(EnumSet.of(TestStackTraceFilter.TRUNCATE)); getDebug().setEvents(EnumSet.allOf(TestLogEvent.class)); getDebug().setMinGranularity(0); getDebug().setStackTraceFilters(EnumSet.noneOf(TestStackTraceFilter.class)); }
Example 7
Source File: Test.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private LogLevel getCurrentLogLevel() { for (LogLevel level : LogLevel.values()) { if (getLogger().isEnabled(level)) { return level; } } throw new AssertionError("could not determine current log level"); }
Example 8
Source File: DefaultTestLoggingContainer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultTestLoggingContainer(Instantiator instantiator) { for (LogLevel level: LogLevel.values()) { perLevelTestLogging.put(level, instantiator.newInstance(DefaultTestLogging.class)); } setEvents(EnumSet.of(TestLogEvent.FAILED)); setExceptionFormat(TestExceptionFormat.SHORT); getInfo().setEvents(EnumSet.of(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR)); getInfo().setStackTraceFilters(EnumSet.of(TestStackTraceFilter.TRUNCATE)); getDebug().setEvents(EnumSet.allOf(TestLogEvent.class)); getDebug().setMinGranularity(0); getDebug().setStackTraceFilters(EnumSet.noneOf(TestStackTraceFilter.class)); }