how to configure logging system in one file on python

Solution
import logging
def main():
  logging.basicConfig(
    format='%(asctime)s - %(levelname)s - %(funcName)s - %(message)s  ',
    datefmt='%d-%b-%y %H:%M:%S',
    level=logging.INFO
  )
  ...
import logging
LOGGER = logging.getLogger(__name__)
version: '3.8'
services:
  app:
    image: ...
    logging:
      driver: local
version: '3.8'
services:
  app:
    image: ...
    logging:
      driver: json-file # default, can be omitted
      options:
        max-size: 10m
        max-file: 50