Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

regex log level info or warn or erro

(?<timestamp>d{4}-d{2}-d{2} d{2}:d{2}:d{2},d{3}) (?<level>INFO|ERROR|WARN|TRACE|DEBUG|FATAL)s+[(?<class>[^]]+)]-[(?<thread>[^]]+)]s+(?<text>.*?)(?=d{4}-d{2}-d{2} d{2}:d{2}:d{2},d{3}|)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #log #level #info #warn #erro
ADD COMMENT
Topic
Name
2+3 =