Server
A Stump Server writes logs to a storage location using a provided storage adapter. The Server
construct is the core of any Stump logging system, and as such this is the starting point for any Stump configuration.
import { Server } from "@stump/core";import { PostgresAdapter } from "@stump/adapter-postgres";
const adapter = new PostgresAdapter(/* adapter config */);const logger = new Server(/* server config */);
// somewhere in your server-side codeawait logger.log({ level: "ERROR", message: "This is an Error"})