Java Code Examples for org.apache.logging.log4j.Level#intLevel()
The following examples show how to use
org.apache.logging.log4j.Level#intLevel() .
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: AppenderControl.java From logging-log4j2 with Apache License 2.0 | 5 votes |
/** * Constructor. * * @param appender The target Appender. * @param level the Level to filter on. * @param filter the Filter(s) to apply. */ public AppenderControl(final Appender appender, final Level level, final Filter filter) { super(filter, null); this.appender = appender; this.appenderName = appender.getName(); this.level = level; this.intLevel = level == null ? Level.ALL.intLevel() : level.intLevel(); start(); }
Example 2
Source File: StatusLogger.java From logging-log4j2 with Apache License 2.0 | 5 votes |
@Override public boolean isEnabled(final Level level, final Marker marker) { // LOG4J2-1813 if system property "log4j2.debug" is defined, all status logging is enabled if (isDebugPropertyEnabled()) { return true; } if (listeners.size() > 0) { return listenersLevel >= level.intLevel(); } return logger.isEnabled(level, marker); }
Example 3
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 5 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5, final Object p6, final Object p7, final Object p8, final Object p9) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 4
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 5 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5, final Object p6, final Object p7, final Object p8) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 5
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 5 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5, final Object p6, final Object p7) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 6
Source File: StatusLogger.java From logging-log4j2 with Apache License 2.0 | 5 votes |
/** * Registers a new listener. * * @param listener The StatusListener to register. */ public void registerListener(final StatusListener listener) { listenersLock.writeLock().lock(); try { listeners.add(listener); final Level lvl = listener.getStatusLevel(); if (listenersLevel < lvl.intLevel()) { listenersLevel = lvl.intLevel(); } } finally { listenersLock.writeLock().unlock(); } }
Example 7
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 8
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String msg, final Throwable t) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 9
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5, final Object p6) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 10
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 11
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 12
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 13
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0, final Object p1) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 14
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String message, final Object p0) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 15
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String msg, final Object... p1) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 16
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final String msg) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 17
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final Object msg, final Throwable t) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 18
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final CharSequence msg, final Throwable t) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 19
Source File: SimpleLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public boolean isEnabled(final Level testLevel, final Marker marker, final Message msg, final Throwable t) { return this.level.intLevel() >= testLevel.intLevel(); }
Example 20
Source File: StatusLogger.java From logging-log4j2 with Apache License 2.0 | 4 votes |
public void updateListenerLevel(final Level status) { if (status.intLevel() > listenersLevel) { listenersLevel = status.intLevel(); } }