mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

The Rust community appear to have converged on tracing - it's used by the Rust compiler, and receives close to 10x the number of downloads that slog does. Its API is more ergonomic, and it does a much nicer job with async rust. To make this change, we no longer pass around explicit loggers, and rely on a globally-registered one. The log file location has been changed from one in each profile folder to a single one in the base folder. This will remain empty for most users, since only errors are logged by default, but may be useful for debugging future changes.
8 lines
296 B
Python
8 lines
296 B
Python
def buildhash() -> str: ...
|
|
def open_backend(data: bytes) -> Backend: ...
|
|
def initialize_logging(log_file: str | None) -> Backend: ...
|
|
|
|
class Backend:
|
|
@classmethod
|
|
def command(self, service: int, method: int, data: bytes) -> bytes: ...
|
|
def db_command(self, data: bytes) -> bytes: ...
|