Changeset 65993e1


Ignore:
Timestamp:
Apr 20, 2015 1:05:14 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c31d6b1
Parents:
7b823933
Message:

add methods to simplify logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/Log.java

    r7b823933 r65993e1  
    185185        return priority >= _minPriority;
    186186    }
     187
     188    /** @since 0.9.20 */
     189    public boolean shouldDebug() {
     190        return shouldLog(DEBUG);
     191    }
     192
     193    /** @since 0.9.20 */
     194    public boolean shouldInfo() {
     195        return shouldLog(INFO);
     196    }
     197
     198    /** @since 0.9.20 */
     199    public boolean shouldWarn() {
     200        return shouldLog(WARN);
     201    }
     202
     203    /** @since 0.9.20 */
     204    public boolean shouldError() {
     205        return shouldLog(ERROR);
     206    }
    187207   
    188208    /**
Note: See TracChangeset for help on using the changeset viewer.