Skip to content

Added logzero to logging#962

Closed
K33k0 wants to merge 1 commit intovinta:masterfrom
K33k0:patch-1
Closed

Added logzero to logging#962
K33k0 wants to merge 1 commit intovinta:masterfrom
K33k0:patch-1

Conversation

@K33k0
Copy link
Copy Markdown

@K33k0 K33k0 commented Oct 20, 2017

What is this Python project?

The simplest way to get logger setup.

What's the difference between this Python project and similar ones?

Logzero can be as simple as:

from logzero import logger
logger.info("we're good to go")

Writing to a file is also very simple

import logzero
from logzero import logger

# Setup rotating logfile with 3 rotations, each with a maximum filesize of 1MB:
logzero.logfile("/tmp/rotating-logfile.log", maxBytes=1e6, backupCount=3)

# Log messages
logger.info("This log message goes to the console and the logfile")

--

Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.

@agrechin
Copy link
Copy Markdown

agrechin commented Mar 9, 2018

Duplicates #901, which already has 9 votes

@stale
Copy link
Copy Markdown

stale Bot commented Oct 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Oct 30, 2019
@stale stale Bot closed this Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants