Class ConsoleLog
java.lang.Object
com.netflix.genie.agent.cli.logging.ConsoleLog
Utilities for interacting with the user terminal/console.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.slf4j.LoggerGet the LOGGER visible to user on the console.static voidprintBanner(org.springframework.core.env.Environment environment) Load and print the Spring banner (if one is configured) to UserConsole.
-
Method Details
-
getLogger
public static org.slf4j.Logger getLogger()Get the LOGGER visible to user on the console. All other LOGGER messages are logged on file only to avoid interfering with the job console output.- Returns:
- a special Logger whose messages are visible on the user terminal.
-
printBanner
public static void printBanner(org.springframework.core.env.Environment environment) Load and print the Spring banner (if one is configured) to UserConsole.- Parameters:
environment- the Spring environment
-