Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit 356d9a4

Browse files
author
Daniel Norberg
committed
restore configureDefaults method
1 parent 84b2d8b commit 356d9a4

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/main/java/com/spotify/logging/LoggingConfigurator.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,20 @@ public static void configureDefaults() {
127127
* @param ident The logging identity.
128128
*/
129129
public static void configureDefaults(final String ident) {
130-
configureDefaults(ident, Level.INFO, ReplaceNewLines.OFF);
130+
configureDefaults(ident, Level.INFO);
131+
}
132+
133+
/**
134+
* Configure logging with default behaviour and log to stderr. If the SPOTIFY_SYSLOG_HOST or
135+
* SPOTIFY_SYSLOG_PORT environment variable is defined, the syslog appender will be used,
136+
* otherwise console appender will be.
137+
*
138+
* @param ident The logging identity.
139+
* @param level logging level to use.
140+
*/
141+
public static void configureDefaults(final String ident,
142+
final Level level) {
143+
configureDefaults(ident, level, ReplaceNewLines.OFF);
131144
}
132145

133146
/**

0 commit comments

Comments
 (0)