Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"), README, CLI strings, and branch (coven → hack-house). Gitea repo renamed cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest + golden-vector test still green, binary is now `hack-house`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
61 lines
1.6 KiB
Python
61 lines
1.6 KiB
Python
import sys
|
|
|
|
from typing import Any
|
|
|
|
|
|
LOGGING_CONFIG_DEFAULTS: dict[str, Any] = dict( # no cov
|
|
version=1,
|
|
disable_existing_loggers=False,
|
|
loggers={
|
|
"sanic.root": {"level": "INFO", "handlers": ["console"]},
|
|
"sanic.error": {
|
|
"level": "INFO",
|
|
"handlers": ["error_console"],
|
|
"propagate": True,
|
|
"qualname": "sanic.error",
|
|
},
|
|
"sanic.access": {
|
|
"level": "INFO",
|
|
"handlers": ["access_console"],
|
|
"propagate": True,
|
|
"qualname": "sanic.access",
|
|
},
|
|
"sanic.server": {
|
|
"level": "INFO",
|
|
"handlers": ["console"],
|
|
"propagate": True,
|
|
"qualname": "sanic.server",
|
|
},
|
|
"sanic.websockets": {
|
|
"level": "INFO",
|
|
"handlers": ["console"],
|
|
"propagate": True,
|
|
"qualname": "sanic.websockets",
|
|
},
|
|
},
|
|
handlers={
|
|
"console": {
|
|
"class": "logging.StreamHandler",
|
|
"formatter": "generic",
|
|
"stream": sys.stdout,
|
|
},
|
|
"error_console": {
|
|
"class": "logging.StreamHandler",
|
|
"formatter": "generic",
|
|
"stream": sys.stderr,
|
|
},
|
|
"access_console": {
|
|
"class": "logging.StreamHandler",
|
|
"formatter": "access",
|
|
"stream": sys.stdout,
|
|
},
|
|
},
|
|
formatters={
|
|
"generic": {"class": "sanic.logging.formatter.AutoFormatter"},
|
|
"access": {"class": "sanic.logging.formatter.AutoAccessFormatter"},
|
|
},
|
|
)
|
|
"""
|
|
Default logging configuration
|
|
"""
|