PLR now supports configuration

Thanks to jt05610, PLR now supports configuration. It’s just used to configure the logger for now, but it’s easily extendible. (make a PR if you have good ideas!)

import logging
from pathlib import Path
from pylabrobot.config import Config

config = Config(
  logging=Config.Logging(
    level=logging.DEBUG,
    log_dir=Path("my_logs")
  )
)

INI & JSON supported:

[logging]
level = DEBUG
log_dir = .
{
  "logging": {
    "level": "DEBUG",
    "log_dir": "."
  }
}

https://docs.pylabrobot.org/configuration.html