Compare commits
3 Commits
b7ccce1e2f
...
59117866d6
Author | SHA1 | Date | |
---|---|---|---|
59117866d6 | |||
a1a313b6e5 | |||
6da0fb5059 |
33
.drone.yml
Normal file
33
.drone.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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,3 +138,5 @@ dmypy.json
|
|||||||
# Cython debug symbols
|
# Cython debug symbols
|
||||||
cython_debug/
|
cython_debug/
|
||||||
|
|
||||||
|
# Pycharm
|
||||||
|
.idea
|
@ -1,10 +1,12 @@
|
|||||||
# logger
|
# logger
|
||||||
|
|
||||||
Simple logger function with colored LogLevel for other scripts and designed to run inside Docker container
|
[![Build Status](https://drone.pyas.de/api/badges/Kim/logger/status.svg)](https://drone.pyas.de/Kim/logger)
|
||||||
|
|
||||||
Debug can be enabled by setting the environment variable
|
Simple logger function with colored LogLevel designed to run inside Docker container
|
||||||
|
|
||||||
*DEBUG_MODE = True*
|
> Debug can be enabled by setting the environment variable
|
||||||
|
>
|
||||||
|
> **DEBUG_MODE** = *True*
|
||||||
|
|
||||||
## Usage example
|
## Usage example
|
||||||
```python
|
```python
|
||||||
|
Loading…
x
Reference in New Issue
Block a user