public class Channel extends Object implements Comparable<Channel>
| Modifier and Type | Field and Description |
|---|---|
static Channel |
ALL
Represents all logging level with positive priority.
|
static Channel |
DEBUG |
static Channel |
ERROR |
static Channel |
FATAL |
static Channel |
INFO |
static Channel |
TRACE |
static Channel |
WARN |
| Constructor and Description |
|---|
Channel(String name,
double priority,
ChannelIntention intention) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Channel to) |
boolean |
equals(Object to) |
ChannelIntention |
getIntention()
Get the estimated intention of channel
|
String |
getName()
Get the name of channel
|
static Set<Channel> |
getPredefinedChannels()
Get predefined channels as set
|
double |
getPriority()
Get the priority of channel
|
int |
hashCode() |
static Optional<Channel> |
of(String channel)
Find channel using its string representation.
|
public static final Channel ALL
public static final Channel FATAL
public static final Channel ERROR
public static final Channel WARN
public static final Channel INFO
public static final Channel DEBUG
public static final Channel TRACE
public Channel(String name, double priority, ChannelIntention intention)
public int compareTo(Channel to)
compareTo in interface Comparable<Channel>public ChannelIntention getIntention()
public double getPriority()
public String getName()
public static Optional<Channel> of(String channel)
channel - the channel to look forCopyright © 2021. All rights reserved.