Package jlibs.core.lang

Examples of jlibs.core.lang.Ansi


    public String format(LogRecord logRecord) {
        // Create a StringBuffer to contain the formatted record
        // start with the date.
        StringBuffer sb = new StringBuffer();

        Ansi ansi = ansiForLevel(logRecord.getLevel());
        sb.append(ansi.colorize('[' + logRecord.getLevel().getName() + ']')).append(' ');

        // Get the formatted message (includes localization
        // and substitution of paramters) and add it to the buffer
        sb.append(formatMessage(logRecord));
        sb.append('\n');
View Full Code Here

TOP

Related Classes of jlibs.core.lang.Ansi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.