What's the difference between this Python project and similar ones?
Logzero can be as simple as:
fromlogzeroimportloggerlogger.info("we're good to go")
Writing to a file is also very simple
importlogzerofromlogzeroimportlogger# Setup rotating logfile with 3 rotations, each with a maximum filesize of 1MB:logzero.logfile("/tmp/rotating-logfile.log",maxBytes=1e6,backupCount=3)# Log messageslogger.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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/962
**Author:** [@K33k0](https://github.com/K33k0)
**Created:** 10/20/2017
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`fe7d8a4`](https://github.com/vinta/awesome-python/commit/fe7d8a42dbf538d74ee5e08325e3a49278a6e110) Added logzero to logging
### 📊 Changes
**1 file changed** (+2 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+2 -0)
</details>
### 📄 Description
## 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:
``` python
from logzero import logger
logger.info("we're good to go")
```
Writing to a file is also very simple
``` python
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 :+1: to it, and usually, the maintainer will merge it when votes reach **20**.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/962
Author: @K33k0
Created: 10/20/2017
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
fe7d8a4Added logzero to logging📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
README.md(+2 -0)📄 Description
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:
Writing to a file is also very simple
--
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.