All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jspringbot.syntax.HighlightKeywordLogger Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
package org.jspringbot.syntax;

import org.jspringbot.JSpringBotLogger;
import org.jspringbot.syntax.HighlightRobotLogger.HtmlAppender;

class HighlightKeywordLogger {
    public static final ThreadLocal APPENDER_THREAD_LOCAL = new ThreadLocal();

    static void createAppender(String keyword) {
        HtmlAppender appender = new HtmlAppender(JSpringBotLogger.getLogger(HighlightKeywordLogger.class));
        appender.appendBold(keyword + ":");

        APPENDER_THREAD_LOCAL.set(appender);
    }

    static HtmlAppender appender() {
        return APPENDER_THREAD_LOCAL.get();
    }

    static void clear() {
        APPENDER_THREAD_LOCAL.remove();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy