Java Code Examples for org.apache.logging.log4j.Level#toString()
The following examples show how to use
org.apache.logging.log4j.Level#toString() .
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: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public LoggerComponentBuilder newAsyncLogger(final String name, final Level level) { return new DefaultLoggerComponentBuilder(this, name, level.toString(), "AsyncLogger"); }
Example 2
Source File: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public LoggerComponentBuilder newAsyncLogger(final String name, final Level level, final boolean includeLocation) { return new DefaultLoggerComponentBuilder(this, name, level.toString(), "AsyncLogger", includeLocation); }
Example 3
Source File: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public RootLoggerComponentBuilder newAsyncRootLogger(final Level level) { return new DefaultRootLoggerComponentBuilder(this, level.toString(), "AsyncRoot"); }
Example 4
Source File: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public RootLoggerComponentBuilder newAsyncRootLogger(final Level level, final boolean includeLocation) { return new DefaultRootLoggerComponentBuilder(this, level.toString(), "AsyncRoot", includeLocation); }
Example 5
Source File: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public LoggerComponentBuilder newLogger(final String name, final Level level) { return new DefaultLoggerComponentBuilder(this, name, level.toString()); }
Example 6
Source File: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public LoggerComponentBuilder newLogger(final String name, final Level level, final boolean includeLocation) { return new DefaultLoggerComponentBuilder(this, name, level.toString(), includeLocation); }
Example 7
Source File: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public RootLoggerComponentBuilder newRootLogger(final Level level) { return new DefaultRootLoggerComponentBuilder(this, level.toString()); }
Example 8
Source File: DefaultConfigurationBuilder.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public RootLoggerComponentBuilder newRootLogger(final Level level, final boolean includeLocation) { return new DefaultRootLoggerComponentBuilder(this, level.toString(), includeLocation); }
Example 9
Source File: LevelPatternConverter.java From logging-log4j2 with Apache License 2.0 | 3 votes |
/** * Returns the leftmost chars of the level name for the given level. * * @param level * The level * @param length * How many chars to return * @return The abbreviated level name, or the whole level name if the {@code length} is greater than the level name * length, */ private static String left(final Level level, final int length) { final String string = level.toString(); if (length >= string.length()) { return string; } return string.substring(0, length); }