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

Core log methods #2

Open
10 tasks
andrew-chang-dewitt opened this issue Mar 24, 2021 · 0 comments · May be fixed by #5
Open
10 tasks

Core log methods #2

andrew-chang-dewitt opened this issue Mar 24, 2021 · 0 comments · May be fixed by #5
Assignees
Labels
enhancement New feature or request

Comments

@andrew-chang-dewitt
Copy link
Contributor

andrew-chang-dewitt commented Mar 24, 2021

The main methods to be called by a user of this library. Their purpose is largely the same as their counterparts in the logging standard library. The key difference is that each method is asynchronous and sends the LogRecord to two destinations by default: stdout and a user configured AMPQ queue.

Each of these methods shares the following behaviors:

  • Log given data to stdout (can probably defer to standard library logging for this).
  • Publish message on user configured root routing key over AMQ with direct exchange.
  • The second level of the routing key is configured by the method called and matches the method name (e.g. calling warn with a root of ‘logging’ publishes with the routing key ‘logging.warn’).

The core methods are:

  • debug
  • info
  • warn
  • warning
  • error
  • exception
  • critical
@andrew-chang-dewitt andrew-chang-dewitt added the enhancement New feature or request label Mar 24, 2021
@andrew-chang-dewitt andrew-chang-dewitt self-assigned this Mar 24, 2021
@andrew-chang-dewitt andrew-chang-dewitt linked a pull request Mar 24, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant