mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
Add a simplified logOnce method.
This commit is contained in:
parent
8bf207c112
commit
9f1f3d1525
@ -110,6 +110,19 @@ public class StaticLog {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method to use the set log stream (see:
|
||||
* {@link #logOnce(StreamID, Level, String, String)}).
|
||||
*
|
||||
* @param level
|
||||
* @param header
|
||||
* @param longMessage
|
||||
*/
|
||||
public static void logOnce(final Level level,
|
||||
final String header, final String longMessage) {
|
||||
logOnce(streamID, level, header, longMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Not really once: Always log the header with an id: create a hash of to be
|
||||
* logged parts and keep the hash in memory, log it with the header - only
|
||||
|
Loading…
Reference in New Issue
Block a user