loggly / loggly-jslogger

Client-side (browser) logger to use with Loggly v2
79 stars 51 forks source link

Support for levels #59

Closed johnfrancisgit closed 3 years ago

johnfrancisgit commented 4 years ago

Is there support for levels such as info, warn, error etc? If so, It's missing from the documentation

Katulus commented 4 years ago

Hello @johnfrancisgit, loggly-jslogger is more of a "transport" than a full logging framework. It does not care what you send. You can send for example {"level":"INFO","message":"my log message"} and Loggly will parse level and message out of it and lets you search for them. You can create own wrapper functions logInfo(), logWarn() etc. and tweak the format according to your needs.