001/*
002 * Copyright 2025 devteam@scivics-lab.com
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing,
011 * software distributed under the License is distributed on an
012 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013 * either express or implied.  See the License for the
014 * specific language governing permissions and limitations
015 * under the License.
016 */
017
018package com.scivicslab.actoriac.log;
019
020/**
021 * Log levels for distributed logging.
022 *
023 * @author devteam@scivics-lab.com
024 */
025public enum LogLevel {
026    DEBUG(0),
027    INFO(1),
028    WARN(2),
029    ERROR(3);
030
031    private final int priority;
032
033    LogLevel(int priority) {
034        this.priority = priority;
035    }
036
037    public int getPriority() {
038        return priority;
039    }
040
041    public boolean isAtLeast(LogLevel other) {
042        return this.priority >= other.priority;
043    }
044}