import { BaseLogger as OasisLogger } from 'pino'; export { OasisLogger }; /** * Deduces the appropriate debug level for logger named `name` from environment variables, * as described in `oasisLogger()`. **/ export declare function logLevelFromEnv(name: string): string; /** * Constructs a new logger named `name` with oasis-default configuration (JSON logs, UTC times, etc). * The logging level is determined via the OASIS_SDK_LOG_LEVEL variable, which is parsed as a simple * logging spec. * * Example: `OASIS_SDK_LOG_LEVEL='warn,gateway=error,http.*auth=trace'` is interpreted as: * - Every logger should log at level "warn". * - Loggers whose name contains "gateway" should log at level "error" * - Loggers whose name matches the regex "http.*auth" should log at "trace" * * The default logging level is "silent". If a logger name matches multiple rules, the last rule prevails. * The spec can be very simple, e.g. `OASIS_SDK_LOG_LEVEL=warn`. */ export declare function oasisLogger(name: string): OasisLogger; /** * Returns the current stack trace in a human-readable format. */ export declare function stackTrace(): string;