logger.py/.drone.yml

26 lines
659 B
YAML
Raw Normal View History

2021-08-07 20:24:58 +02:00
kind: pipeline
type: docker
name: default
workspace:
path: /drone/src
steps:
2021-08-07 20:36:37 +02:00
- name: test
2021-08-07 20:50:43 +02:00
image: python:alpine
2021-08-07 20:24:58 +02:00
pull: if-not-exists
environment:
2021-08-07 20:36:37 +02:00
DEBUG_MODE: 'True'
2021-08-07 20:24:58 +02:00
TZ: 'Europe/Berlin'
commands:
- apk --no-cache add gcc musl-dev tzdata
- pip3 install --no-cache-dir -r requirements.txt
2021-08-07 20:36:37 +02:00
- echo "$DEBUG_MODE"
2021-08-07 20:50:43 +02:00
- python3
- from loghandler import logger
- 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")