Compare commits

..

3 Commits

Author SHA1 Message Date
Kim
59117866d6 add .idea to .gitignore 2021-08-07 20:25:23 +02:00
Kim
a1a313b6e5 add drone build status badge 2021-08-07 20:25:11 +02:00
Kim
6da0fb5059 add .drone.yml 2021-08-07 20:24:58 +02:00
3 changed files with 40 additions and 3 deletions

33
.drone.yml Normal file
View 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
View File

@ -138,3 +138,5 @@ dmypy.json
# Cython debug symbols # Cython debug symbols
cython_debug/ cython_debug/
# Pycharm
.idea

View File

@ -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