/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.segment.analytics.Log
 *  com.segment.analytics.Log$Level
 */
package com.l7tech.server.telemetry;

import com.l7tech.server.telemetry.b;
import com.segment.analytics.Log;
import java.util.logging.Level;
import java.util.logging.Logger;

class c
implements Log {
    private static final Logger a = Logger.getLogger(c.class.getName());

    private c() {
    }

    private Level a(Log.Level level) {
        return switch (b.a[level.ordinal()]) {
            case 1 -> Level.WARNING;
            case 2 -> Level.FINEST;
            default -> Level.FINE;
        };
    }

    public void print(Log.Level level, String string, Object ... objectArray) {
        a.log(this.a(level), () -> c.lambda$print$0(string, objectArray));
    }

    public void print(Log.Level level, Throwable throwable, String string, Object ... objectArray) {
        a.log(this.a(level), throwable, () -> c.lambda$print$1(string, objectArray));
    }

    private static String lambda$print$1(String string, Object[] objectArray) {
        return String.format(string, objectArray);
    }

    private static String lambda$print$0(String string, Object[] objectArray) {
        return String.format(string, objectArray);
    }
}

