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

Adds log4s logging to free and tagless #512

Merged
merged 9 commits into from
Jan 17, 2018
Merged

Adds log4s logging to free and tagless #512

merged 9 commits into from
Jan 17, 2018

Conversation

eperinan
Copy link
Contributor

This PR adds a new way to log the messages through log4s.

I added this logger to free and tagless.

This change doesn't have a breaking change because the default implicit freestyle.free.loggingJVM.implicits point to journal directly.

This PR is in WIP because I want a first code review and if it adapts to your thoughts, I will update the documentation with these changes.

@eperinan eperinan added the WIP label Jan 16, 2018
@eperinan eperinan self-assigned this Jan 16, 2018
@eperinan eperinan requested a review from a team January 16, 2018 10:33
@eperinan
Copy link
Contributor Author

Could you take a look at the documentation file @MaureenElsberry ?

This is the document with my changes https://github.com/frees-io/freestyle/pull/512/files#diff-081d1cdca5458a4fb00271d9fc16c23f

Thanks

* limitations under the License.
*/

package freestyle.free
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not much in favor of having multiple package declarations. IMHO, an import should be as explicit and restricted as reasonably possible. In this case, it is not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Changed.

* limitations under the License.
*/

package freestyle.tagless
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Changed.

eperinan and others added 3 commits January 16, 2018 14:59
You could use either both, depending on your requirements, and the
usage would be quite similar.

You could use either, or both, depending on your requirements, and the
usage would be quite similar.

If that is not accurate, just take out the or both and change to:

You could use either, depending on your requirements, and the usage
would be quite similar.
@eperinan eperinan merged commit 288535c into master Jan 17, 2018
@eperinan eperinan deleted the ep-logging-log4s branch January 17, 2018 08:38
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.

None yet

5 participants