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

Add new logger with log levels #435

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add new logger with log levels #435

wants to merge 3 commits into from

Conversation

timokoessler
Copy link
Contributor

@timokoessler timokoessler commented Oct 28, 2024

Example for blocked attack:

Zen has detected a NoSQL injection: kind="nosql_injection" operation="operation(...)" source="body.nested" ip="::1"

Copy link

codecov bot commented Oct 28, 2024

}

const logLevelKeys = Object.keys(AikidoLogLevel);
const defaultLogLevel = AikidoLogLevel.info;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if default level should be info or warn.

Zen has detected a NoSQL injection ... is logged as info.

@timokoessler timokoessler marked this pull request as ready for review October 28, 2024 16:39
Base automatically changed from beta to main December 3, 2024 15:56
An error occurred while trying to automatically change base from beta to main December 3, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant