import logging
from typing import (
	Optional,
)


def setup(level: Optional[int] = None) -> None:
	if level is None:
		level = logging.INFO

	logging.basicConfig(
		level=level,
		format=('%(levelname)s:%(name)s:%(message)s:%(process)d:%(asctime)s:%(pathname)s:%(funcName)s:%(lineno)s'),
	)
