Class ConsoleLog

java.lang.Object
com.netflix.genie.agent.cli.logging.ConsoleLog

public final class ConsoleLog extends Object
Utilities for interacting with the user terminal/console.
Since:
4.0.0
  • 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