Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for levels #59

Open
johnfrancisgit opened this issue Jun 3, 2020 · 1 comment
Open

Support for levels #59

johnfrancisgit opened this issue Jun 3, 2020 · 1 comment

Comments

@johnfrancisgit
Copy link

@johnfrancisgit johnfrancisgit commented Jun 3, 2020

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

@Katulus
Copy link

@Katulus Katulus commented Jun 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.