Example usage for org.springframework.boot.ansi AnsiColor GREEN

List of usage examples for org.springframework.boot.ansi AnsiColor GREEN

Introduction

In this page you can find the example usage for org.springframework.boot.ansi AnsiColor GREEN.

Prototype

AnsiColor GREEN

To view the source code for org.springframework.boot.ansi AnsiColor GREEN.

Click Source Link

Usage

From source file:com.ebay.logstorm.server.utils.EagleBanner.java

@Override
public void printBanner(Environment environment, Class<?> sourceClass, PrintStream printStream) {
    for (String line : BANNER) {
        printStream.println(line);//  ww  w.  ja v  a2  s .  co  m
    }
    String version = SpringBootVersion.getVersion();
    version = (version == null ? "" : " (v" + version + ")");
    String padding = "";
    while (padding.length() < STRAP_LINE_SIZE - (version.length() + SPRING_BOOT.length())) {
        padding += " ";
    }
    printStream.println(AnsiOutput.toString(AnsiColor.GREEN, SPRING_BOOT, AnsiColor.DEFAULT, padding,
            AnsiStyle.FAINT, version));
    printStream.println();
}