Java Code Examples for ch.qos.logback.classic.Logger#getName()

The following examples show how to use ch.qos.logback.classic.Logger#getName() . 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: GatewayEventFilter.java    From Discord4J with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public FilterReply decide(Marker marker, Logger log, Level level, String format, Object[] params, Throwable t) {
    String logName = log.getName();
    if (loggers.contains(logName)) {
        if (format != null) {
            if (!excludedEvents.isEmpty() && excludedEvents.stream().anyMatch(format::contains)) {
                return FilterReply.DENY;
            }
            if (!includedEvents.isEmpty() && includedEvents.stream().noneMatch(format::contains)) {
                return FilterReply.DENY;
            }
        }
    }
    return FilterReply.NEUTRAL;
}
 
Example 2
Source File: LoggerVM.java    From cubeai with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 3
Source File: LoggerVM.java    From 21-points with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 4
Source File: _LoggerDTO.java    From jhipster-ribbon-hystrix with GNU General Public License v3.0 4 votes vote down vote up
public LoggerDTO(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 5
Source File: LoggerVM.java    From e-commerce-microservice with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 6
Source File: LoggerVM.java    From e-commerce-microservice with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 7
Source File: LoggerDTO.java    From jhipster-ribbon-hystrix with GNU General Public License v3.0 4 votes vote down vote up
public LoggerDTO(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 8
Source File: LoggerVM.java    From tutorials with MIT License 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 9
Source File: LoggerVM.java    From tutorials with MIT License 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 10
Source File: LoggerVM.java    From tutorials with MIT License 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 11
Source File: LoggerVM.java    From flair-registry with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 12
Source File: LoggerVM.java    From cubeai with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 13
Source File: LoggerVM.java    From cubeai with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 14
Source File: LoggerDTO.java    From ServiceCutter with Apache License 2.0 4 votes vote down vote up
public LoggerDTO(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 15
Source File: LoggerDTO.java    From jhipster-ribbon-hystrix with GNU General Public License v3.0 4 votes vote down vote up
public LoggerDTO(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 16
Source File: LoggerDTO.java    From klask-io with GNU General Public License v3.0 4 votes vote down vote up
public LoggerDTO(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 17
Source File: LoggerVM.java    From cubeai with Apache License 2.0 4 votes vote down vote up
public LoggerVM(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 18
Source File: LoggerDTO.java    From angularjs-springboot-bookstore with MIT License 4 votes vote down vote up
public LoggerDTO(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}
 
Example 19
Source File: LoggerVo.java    From albedo with GNU Lesser General Public License v3.0 4 votes vote down vote up
public LoggerVo(Logger logger) {
	this.name = logger.getName();
	this.level = logger.getEffectiveLevel().toString();
}
 
Example 20
Source File: LoggerDTO.java    From gpmr with Apache License 2.0 4 votes vote down vote up
public LoggerDTO(Logger logger) {
    this.name = logger.getName();
    this.level = logger.getEffectiveLevel().toString();
}