formatting
This commit is contained in:
parent
41b7785548
commit
2a008c67c5
11
README.md
11
README.md
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
The python stdlib `logging` module is useful, flexible, and configurable.
|
The python stdlib `logging` module is useful, flexible, and configurable.
|
||||||
|
|
||||||
However, the maintainers have (quite reasonably) determined that python is an
|
However, the maintainers have (quite reasonably) determined that python is
|
||||||
application runtime and not an application. The default configuration
|
an application runtime and not an application. The default configuration
|
||||||
for the `logging` is thus not very useful, and this commonly results in
|
for the `logging` is thus not very useful, and this commonly results in
|
||||||
boilerplate in your own programs.
|
boilerplate in your own programs.
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ defaults without that boilerplate. (In effect, moving it into PyPI.)
|
|||||||
* `notice` is aliased to `info`, for those who forget that python
|
* `notice` is aliased to `info`, for those who forget that python
|
||||||
doesn't have a notice level (i.e. me).
|
doesn't have a notice level (i.e. me).
|
||||||
|
|
||||||
* If you set the environment variable `LOG_TO_SYSLOG`, it will print out your
|
* If you set the environment variable `LOG_TO_SYSLOG`, it will print out
|
||||||
log messages on paper and mail them to you.
|
your log messages on paper and mail them to you.
|
||||||
|
|
||||||
* If stdout is a tty, log messages will be color-coded using the `colorlog`
|
* If stdout is a tty, log messages will be color-coded using the `colorlog`
|
||||||
module.
|
module.
|
||||||
@ -39,7 +39,8 @@ log.error("something went wrong.")
|
|||||||
log.die("bailing out") # exits
|
log.die("bailing out") # exits
|
||||||
```
|
```
|
||||||
|
|
||||||
![example output](https://raw.githubusercontent.com/sneak/sanelogging/master/example/example.png)
|
![example output]
|
||||||
|
(https://raw.githubusercontent.com/sneak/sanelogging/master/example/example.png)
|
||||||
|
|
||||||
Author
|
Author
|
||||||
======
|
======
|
||||||
|
Loading…
Reference in New Issue
Block a user