| Package | Description |
|---|---|
| com.reposilite.journalist | |
| com.reposilite.journalist.backend |
| Modifier and Type | Field and Description |
|---|---|
static Channel |
Channel.ALL
Represents all logging level with positive priority.
|
static Channel |
Channel.DEBUG |
static Channel |
Channel.ERROR |
static Channel |
Channel.FATAL |
static Channel |
Channel.INFO |
static Channel |
Channel.TRACE |
static Channel |
Channel.WARN |
| Modifier and Type | Method and Description |
|---|---|
static Set<Channel> |
Channel.getPredefinedChannels()
Get predefined channels as set
|
static Optional<Channel> |
Channel.of(String channel)
Find channel using its string representation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Channel.compareTo(Channel to) |
Logger |
Logger.exception(Channel channel,
Throwable throwable)
Log the given exception to the given channel
|
Logger |
Logger.log(Channel channel,
Object message,
Object... arguments)
Log the given message to the provided channel
|
Logger |
Logger.setThreshold(Channel threshold)
Modify current threshold
|
PrintStream |
Logger.toPrintStream(Channel channel)
Create PrintStream that will write to the current logger.
|
| Modifier and Type | Field and Description |
|---|---|
protected Channel |
DefaultLogger.threshold |
| Modifier and Type | Method and Description |
|---|---|
Optional<Map.Entry<Channel,String>> |
CachedLogger.find(BiPredicate<Channel,String> filter)
Find entry with message and channel related to it.
|
Optional<Map.Entry<Channel,String>> |
MultichannelCachedLogger.find(BiPredicate<Channel,String> filter)
Find entry with message and channel related to it.
|
List<? extends Map.Entry<Channel,String>> |
CachedLogger.getMessages()
Get all stored messages.
|
Queue<? extends Map.Entry<Channel,String>> |
InMemoryLogger.getMessages()
Get all stored messages
|
Map<? extends Channel,? extends List<String>> |
MultichannelCachedLogger.getMessages()
Get all stored messages.
|
| Modifier and Type | Method and Description |
|---|---|
Logger |
DefaultLogger.exception(Channel channel,
Throwable throwable) |
protected void |
AggregatedLogger.internalLog(Channel channel,
String message) |
protected void |
CachedLogger.internalLog(Channel channel,
String message) |
protected abstract void |
DefaultLogger.internalLog(Channel channel,
String message)
Internal method used by
DefaultLogger to send processed message to the final implementation. |
protected void |
InMemoryLogger.internalLog(Channel channel,
String message) |
protected void |
MultichannelCachedLogger.internalLog(Channel channel,
String message) |
protected void |
PrintStreamLogger.internalLog(Channel channel,
String message) |
Logger |
DefaultLogger.log(Channel channel,
Object message,
Object... arguments) |
Logger |
DefaultLogger.setThreshold(Channel threshold) |
PrintStream |
DefaultLogger.toPrintStream(Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Map.Entry<Channel,String>> |
CachedLogger.find(BiPredicate<Channel,String> filter)
Find entry with message and channel related to it.
|
Optional<Map.Entry<Channel,String>> |
MultichannelCachedLogger.find(BiPredicate<Channel,String> filter)
Find entry with message and channel related to it.
|
| Constructor and Description |
|---|
AggregatedLogger(Channel threshold,
Collection<? extends Logger> loggers) |
CachedLogger(Channel threshold,
int capacity) |
DefaultLogger(Channel threshold) |
InMemoryLogger(Channel threshold) |
MultichannelCachedLogger(Channel threshold,
int capacity,
Set<Channel> channels) |
PrintStreamLogger(PrintStream out,
PrintStream err,
Channel threshold,
boolean newline) |
| Constructor and Description |
|---|
MultichannelCachedLogger(Channel threshold,
int capacity,
Set<Channel> channels) |
MultichannelCachedLogger(int capacity,
Set<Channel> channels)
Uses
INFO as a default threshold. |
Copyright © 2021. All rights reserved.