Skip to content

Instantly share code, notes, and snippets.

View KernelPryanic's full-sized avatar
🇺🇦

Daniil Trishkin KernelPryanic

🇺🇦
  • JW Player
  • Amsterdam, Netherlands
View GitHub Profile
package log
import (
"context"
"fmt"
"os"
"runtime"
"sync"
"time"
@KernelPryanic
KernelPryanic / logger.py
Last active November 2, 2023 17:27
Flask + Structlog
"""Logger module for the application."""
import logging
import sys
from logging import Handler, LogRecord
import structlog
class StructlogHandler(Handler):