<commit_before>package com.kumuluz.ee.logs.types;

import com.kumuluz.ee.logs.enums.LogLevel;
import com.kumuluz.ee.logs.messages.MethodCallExitLogMessage;
import com.kumuluz.ee.logs.messages.MethodCallLogMessage;

/**
 * @author <NAME>
 */
public class LogMethodContext {

    private LogLevel level;

    private Boolean callEnabled;
    private Boolean metricsEnabled;

    private MethodCallLogMessage callMessage;

    private MethodCallExitLogMessage callExitMessage;
    private LogMetrics logMetrics;

    public LogMethodContext(LogMethodMessage entryMessage, LogLevel level) {
        this.callEnabled = entryMessage.isCallEnabled();
        this.metricsEnabled = entryMessage.isMetricsEnabled();

        if (this.metricsEnabled != null && this.metricsEnabled) {
            this.logMetrics = new LogMetrics();
        }

        this.callMessage = entryMessage.getCallMessage();

        this.level = level;
    }

    public Boolean isCallEnabled() {
        return callEnabled;
    }

    public Boolean isMetricsEnabled() {
        return metricsEnabled;
    }

    public MethodCallLogMessage getCallMessage() {
        return callMessage;
    }

    public MethodCallExitLogMessage getCallExitMessage() {
        return callExitMessage;
    }

    public void setCallExitMessage(MethodCallExitLogMessage callExitMessage) {
        this.callExitMessage = callExitMessage;
    }

    public LogLevel getLevel() {
        return level;
    }

    public LogMetrics getLogMetrics() {
        return logMetrics;
    }
}<commit_msg>Added option to set a Marker on LogMethodContext<commit_after>package com.kumuluz.ee.logs.types;

import com.kumuluz.ee.logs.enums.LogLevel;
import com.kumuluz.ee.logs.markers.Marker;
import com.kumuluz.ee.logs.messages.MethodCallExitLogMessage;
import com.kumuluz.ee.logs.messages.MethodCallLogMessage;

/**
 * @author <NAME>
 */
public class LogMethodContext {

    private LogLevel level;
    private Marker marker;

    private Boolean callEnabled;
    private Boolean metricsEnabled;

    private MethodCallLogMessage callMessage;

    private MethodCallExitLogMessage callExitMessage;
    private LogMetrics logMetrics;

    public LogMethodContext(LogMethodMessage entryMessage, LogLevel level, Marker marker) {

        this.callEnabled = entryMessage.isCallEnabled();
        this.metricsEnabled = entryMessage.isMetricsEnabled();

        if (this.metricsEnabled != null && this.metricsEnabled) {
            this.logMetrics = new LogMetrics();
        }

        this.callMessage = entryMessage.getCallMessage();

        this.level = level;

        this.marker = marker;
    }

    public LogMethodContext(LogMethodMessage entryMessage, LogLevel level) {
        this(entryMessage,level,null);
    }

    public Boolean isCallEnabled() {
        return callEnabled;
    }

    public Boolean isMetricsEnabled() {
        return metricsEnabled;
    }

    public MethodCallLogMessage getCallMessage() {
        return callMessage;
    }

    public MethodCallExitLogMessage getCallExitMessage() {
        return callExitMessage;
    }

    public void setCallExitMessage(MethodCallExitLogMessage callExitMessage) {
        this.callExitMessage = callExitMessage;
    }

    public LogLevel getLevel() {
        return level;
    }

    public LogMetrics getLogMetrics() {
        return logMetrics;
    }

    public Marker getMarker() {
        return marker;
    }
}
{'fraction_non_alphanumeric': 0.07829389424481449, 'fraction_numerical': 0.0, 'mean_word_length': 3.1203369434416364, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7660852', 'n_tokens_mistral': 947, 'n_tokens_neox': 911, 'n_words': 201}