Compare commits
No commits in common. "59117866d681a52c9bd4abe5c4b93f2000edb614" and "b7ccce1e2f50ff203b47da11087e7ae63321505a" have entirely different histories.
59117866d6
...
b7ccce1e2f
33
.drone.yml
33
.drone.yml
@ -1,33 +0,0 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
workspace:
|
||||
path: /drone/src
|
||||
|
||||
steps:
|
||||
- name: Prepare Environment
|
||||
image: python:3.8-alpine
|
||||
pull: if-not-exists
|
||||
environment:
|
||||
TZ: 'Europe/Berlin'
|
||||
commands:
|
||||
- apk --no-cache add gcc musl-dev tzdata
|
||||
- pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
- name: Test App
|
||||
image: python:3.8-alpine
|
||||
pull: if-not-exists
|
||||
environment:
|
||||
DEBUG_MODE: 'True'
|
||||
TZ: 'Europe/Berlin'
|
||||
commands:
|
||||
- python3 -c "from loghandler import logger
|
||||
def main():
|
||||
logger.debug("This is a Debug Message")
|
||||
logger.info("This is a Info Message")
|
||||
logger.warning("This is a Warning Message")
|
||||
logger.error("This is a Error Message")
|
||||
logger.critical("This is a Critical Message")
|
||||
|
||||
main()"
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -138,5 +138,3 @@ dmypy.json
|
||||
# Cython debug symbols
|
||||
cython_debug/
|
||||
|
||||
# Pycharm
|
||||
.idea
|
@ -1,12 +1,10 @@
|
||||
# logger
|
||||
|
||||
[![Build Status](https://drone.pyas.de/api/badges/Kim/logger/status.svg)](https://drone.pyas.de/Kim/logger)
|
||||
Simple logger function with colored LogLevel for other scripts and designed to run inside Docker container
|
||||
|
||||
Simple logger function with colored LogLevel designed to run inside Docker container
|
||||
Debug can be enabled by setting the environment variable
|
||||
|
||||
> Debug can be enabled by setting the environment variable
|
||||
>
|
||||
> **DEBUG_MODE** = *True*
|
||||
*DEBUG_MODE = True*
|
||||
|
||||
## Usage example
|
||||
```python
|
||||
|
Loading…
x
Reference in New Issue
Block a user