Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cut the cookies, added the code, and deleted the todos #1

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

Merged
merged 11 commits into from
Mar 8, 2019
Merged

Cut the cookies, added the code, and deleted the todos #1

merged 11 commits into from
Mar 8, 2019

Conversation

dastels
Copy link
Collaborator

@dastels dastels commented Mar 7, 2019

No description provided.

Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

This is great! Thanks for doing this up. I have some formatting suggestions. Please update the rest of the docstrings with the :param label: desc format I suggested on the first one. I did not put comments on all of them, only the first one. Thanks!

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Logger.git"

import time
Copy link
Contributor

Choose a reason for hiding this comment

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

Please place this import on line 45 and delete the # imports comment.


@property
def level(self):
"""Get the level."""
Copy link
Contributor

Choose a reason for hiding this comment

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

You can simply docstring this as The level.. We try to stay away from using "Get" and "Set".


@level.setter
def level(self, value):
"""Set the level."""
Copy link
Contributor

Choose a reason for hiding this comment

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

setters do not need to be docstringed. You can remove this.


def log(self, level, format_string, *args):
"""Log a message.
level -- the priority level at which to log
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use :param level: The priority level at which to log formatting for documenting keywords. Include whitespace above the first :param and below the last :param, but it is not necessary between :params.
e.g.

"""Log a message.

:param level: The priority of the level at which to log.
:param format_string: the core message string with embedded formatting directives
:param args: arguments ``format_string.format()``, can be empty

"""

def log(self, level, format_string, *args):
"""Log a message.
level -- the priority level at which to log
format_string -- the core mesage string with embedded formatting directives
Copy link
Contributor

Choose a reason for hiding this comment

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

message typo.

Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

Thanks for the updates!

@kattni kattni merged commit a0c0b0c into adafruit:master Mar 8, 2019
@jerryneedell
Copy link
Contributor

There is an example in the Readme, that uses the UartHandler, but that is not in the code yet, correct, or am I totally missing something.... very possible

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.

3 participants