// 
// Decompiled by Procyon v0.6.0
// 

package com.google.common.flogger.backend.system;

import com.google.common.flogger.LogContext;
import com.google.common.flogger.backend.Metadata;
import com.google.common.flogger.backend.LogData;

public final class SimpleLogRecord extends AbstractLogRecord
{
    public static SimpleLogRecord create(final LogData data, final Metadata scope) {
        return new SimpleLogRecord(data, scope);
    }
    
    @Deprecated
    public static SimpleLogRecord create(final LogData data) {
        return create(data, Metadata.empty());
    }
    
    public static SimpleLogRecord error(final RuntimeException error, final LogData data, final Metadata scope) {
        return new SimpleLogRecord(error, data, scope);
    }
    
    @Deprecated
    public static SimpleLogRecord error(final RuntimeException error, final LogData data) {
        return error(error, data, Metadata.empty());
    }
    
    private SimpleLogRecord(final LogData data, final Metadata scope) {
        super(data, scope);
        this.setThrown(this.getMetadataProcessor().getSingleValue(LogContext.Key.LOG_CAUSE));
        this.getMessage();
    }
    
    private SimpleLogRecord(final RuntimeException error, final LogData data, final Metadata scope) {
        super(error, data, scope);
    }
}
