You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original comment by Michael Diamond (Bitbucket: dimo414).
Potential syntax:
AnsiTemplater template = AnsiTemplater.builder()
// Color lines containing "ERROR" red
.addTemplate().color(RED).pattern(".*ERROR.*")
// Color the word OK green when surrounded by square brackets (like [ OK ] service messages)
.addTemplate().string("[ ").color(GREEN).string("OK").string(" ]")
// highlight the word foo wherever it appears
.addTemplate().color(YELLOW, BOLD).caseInsensitiveString("foo")
.build();
template.process(System.in).toOut();
template.process(Paths.get(filename)).toErr();
Original report by Michael Diamond (Bitbucket: dimo414).
E.g. colorize ERROR/WARNING log lines.
The text was updated successfully, but these errors were encountered: