-
Notifications
You must be signed in to change notification settings - Fork 74
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 PagingSelfAwareStructuredLogger #518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It's a nice idea. Some ideas below.
You might also be able to write some unit tests with the StructuredTestingLogger
.
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
…areStructuredLogger.scala Co-authored-by: Ross A. Baker <ross@rossabaker.com>
…areStructuredLogger.scala Co-authored-by: Ross A. Baker <ross@rossabaker.com>
Use String.slice instead of substring so no need to check end index.
Update PagingSelfAwareStructuredLogger.scala to use String.slice instead of substring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! A few more ideas below.
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Outdated
Show resolved
Hide resolved
core/shared/src/main/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLogger.scala
Show resolved
Hide resolved
… but module support is disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main code is looking good. I have one remaining concern with effa481.
...shared/src/test/scala/org/typelevel/log4cats/PagingSelfAwareStructuredLoggerTestRunner.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 if the build is green
Seems like we can have this for the |
Add PagingSelfAwareStructuredLogger.