java - Log4j pattern, how to represent spaces -
in log4j, how represent more 1 spaces (like : \s+
) in pattern? have pattern %d{iso8601}\t%t\t%m %n
, tab-separation not reliable when parsing through chainsaw , logmx. searching replacement of multiple-space-separated rather tab-separated , cannot find any.
any appreciated. thank you.
the layout pattern in log4j not regular expression pattern, , not used search strings. name idicates, used laying out message priinted log4j. \s+, how know how many spaces print? therefore, if need multiple spaces in message layout, have explicitely type these spaces in pattern.
Comments
Post a Comment