Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics.logback;
 
A Logback ch.qos.logback.core.AppenderBase which has six meters, one for each logging level and one for the total number of statements being logged.
    private final Meter all;
    private final Meter trace;
    private final Meter debug;
    private final Meter info;
    private final Meter warn;
    private final Meter error;
    public InstrumentedAppender() {
        this(Metrics.defaultRegistry());
    }
    public InstrumentedAppender(MetricsRegistry registry) {
        this. = registry.newMeter(Appender.class"all""statements".);
        this. = registry.newMeter(Appender.class"trace""statements".);
        this. = registry.newMeter(Appender.class"debug""statements".);
        this. = registry.newMeter(Appender.class"info""statements".);
        this. = registry.newMeter(Appender.class"warn""statements".);
        this. = registry.newMeter(Appender.class"error""statements".);
    }
    @Override
    protected void append(ILoggingEvent event) {
        .mark();
        switch (event.getLevel().toInt()) {
            case .:
                .mark();
                break;
            case .:
                .mark();
                break;
            case .:
                .mark();
                break;
            case .:
                .mark();
                break;
            case .:
                .mark();
                break;
        }
    }
New to GrepCode? Check out our FAQ X