Skip to content

Conversation

@plantfansam
Copy link
Contributor

❗ this PR contains commits from #67. To view the diff of just this PR, you can look at this link. ❗

This PR adds a base logger that allows the package to work in contexts outside of openresty, along with an nginx logger — configured by default — that maintains the library's current behavior.

--
-- @return nil
function _M:write(message, configured_level, callsite_level)
if configured_level >= self:log_levels()[callsite_level] then
Copy link
Owner

Choose a reason for hiding this comment

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

Can we just use self.log_level here, instead of configured_level ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry for the delay on this, I will try to make this change!

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.

2 participants