Skip to content

Instantly share code, notes, and snippets.

@vaibhav-kaushal
Last active October 7, 2023 15:42
Show Gist options
  • Save vaibhav-kaushal/c94fee1ec3f5a31ced61c06df9cfdfa2 to your computer and use it in GitHub Desktop.
Save vaibhav-kaushal/c94fee1ec3f5a31ced61c06df9cfdfa2 to your computer and use it in GitHub Desktop.
Bark log parser behavior

Assuming the Default Level is INFO and Default code is 000000

String sent Level Log Message ID Log message
D#LMID1 - Log message1 DEBUG LMID1 Log message1
I#LMID2 - Log message2 INFO LMID2 Log message2
N#LMID3 - Log message3 NOTICE LMID3 Log message3
W#LMID4 - Log message4 WARN LMID4 Log message4
E#LMID5 - Log message5 ERROR LMID5 Log message5
A#LMID6 - Log message6 ALERT LMID6 Log message6
P#LMID7 - Log message7 PANIC LMID7 Log message7
LMID8 - Log message8 INFO LMID8 Log message8
Log message9 INFO 000000 Log message9
- Log message10 INFO 000000 - Log message10
# - Log message11 INFO 000000 # - Log message11
X# - Log message12 INFO 000000 X# - Log message12
XX# - Log message13 INFO 000000 XX# - Log message13
XX#LMID14 - Log message14 INFO 000000 XX#LMID14 - Log message14
XX#LMIDINTHISCASEISVERYVERYLONG - Log message15 INFO 000000 XX#LMIDINTHISCASEISVERYVERYLONG - Log message15
#LMIDINTHISCASEISVERYVERYLONG - Log message16 INFO 000000 #LMIDINTHISCASEISVERYVERYLONG - Log message16
#LMID17 - Log message17 INFO 000000 #LMID17 - Log message17
D#LMID18 - Log message18 DEBUG LMID18 Log message18
LMIDINTHISCASEISVERYVERYLONG - Log message19 INFO 000000 LMIDINTHISCASEISVERYVERYLONG - Log message19
E#LMID20 - Log message20 - with - more - dashes ERROR LMID20 Log message20 - with - more - dashes
XX#LMID21 - Log message21 INFO 000000 XX#LMID21 - Log message21
`` (blank string) INFO 000000 ``
(single space) INFO 000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment