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 multiple log levels #495

Open
kevin-lee opened this issue Oct 10, 2023 · 0 comments
Open

Support multiple log levels #495

kevin-lee opened this issue Oct 10, 2023 · 0 comments
Assignees
Labels

Comments

@kevin-lee
Copy link
Owner

Summary

Support multiple log levels

Version

2.0.0-beta21

Description

val fa: F[A] = ...
fa.log(a => info(s"Blah blah $a") |+| debug(s"abc: $a"))


val fab: F[Either[A, B]] = ...
fab.log(
  err => error(s"Error: $err") |+| warn(s"There must be some issue") |+| debug("Something happened"),
  b => info(s"Result: $b") |+| debug("All good!")
)
val fa: F[A] = ...
fa.log(a => multiLogs(info(s"Blah blah $a"), debug(s"abc: $a")))


val fab: F[Either[A, B]] = ...
fab.log(
  err => multiLogs(
      error(s"Error: $err"),
      warn(s"There must be some issue"),
      debug("Something happened")
    ),
  b => multiLogs(
      info(s"Result: $b"),
      debug("All good!")
    )
)
@kevin-lee kevin-lee added this to the v2-m1 milestone Oct 10, 2023
@kevin-lee kevin-lee self-assigned this Oct 10, 2023
@kevin-lee kevin-lee removed this from the v2-m1 milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant