Add a simplified logOnce method.

This commit is contained in:
asofold 2017-04-30 20:14:05 +02:00
parent 8bf207c112
commit 9f1f3d1525
1 changed files with 13 additions and 0 deletions

View File

@ -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