Skip to content

Commit

Permalink
Add a simplified logOnce method.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Apr 30, 2017
1 parent 8bf207c commit 9f1f3d1
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -110,6 +110,19 @@ public static void log(final StreamID streamID, final Level level, final String
}
}

/**
* 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
Expand Down

0 comments on commit 9f1f3d1

Please sign in to comment.