All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pixel.commons.logger.LoggerContext Maven / Gradle / Ivy

The newest version!
/*
 * This software is available under Apache License
 * Copyright (c) 2020
 */

package org.pixel.commons.logger;

public class LoggerContext {

    //region Fields & Properties

    private final String identifier;
    private LogLevel level;

    //endregion

    //region Constructors

    /**
     * Constructor
     *
     * @param identifier
     */
    public LoggerContext(String identifier) {
        this.identifier = identifier;
        this.level = LogLevel.DEBUG;
    }

    //endregion

    //region Public Functions

    /**
     * Get context identifier
     *
     * @return
     */
    public String getIdentifier() {
        return identifier;
    }

    /**
     * Get context log level
     *
     * @return
     */
    public LogLevel getLevel() {
        return level;
    }

    /**
     * Set context log level
     *
     * @param level
     */
    public void setLevel(LogLevel level) {
        this.level = level;
    }

    //endregion

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy