Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,97 @@
// Abstract
export type {
AbstractLoggerConfig,
LogEntry,
Logger,
LoggerMetrics,
LogLevel,
LogLevels,
LogRecord,
} from "./abstract/abstract-logger.js";
export { AbstractLogger, LOG_LEVELS } from "./abstract/abstract-logger.js";
// Console
export { ConsoleLogger } from "./console/console-logger.js";
export type { ConsoleLoggerConfig } from "./console/console-logger.types.js";
// Error bridge
export {
__resetDefaultLoggerForTests,
installSuaveplanErrorInterceptor,
logSuaveplanError,
SEVERITY_TO_LEVEL,
} from "./error-bridge/error-bridge.js";
export type {
InstallErrorInterceptorOptions,
SeverityLevelMap,
UninstallErrorInterceptor,
} from "./error-bridge/error-bridge.types.js";
// Errors
export { LOGGER_CODES, LoggerError } from "./errors/logger-error.js";
export type { LoggerErrorCode } from "./errors/logger-error.types.js";
// Event
export { EventLogger } from "./event/event-logger.js";
export type {
EventLoggerConfig,
LoggerEventBus,
LoggerEvents,
} from "./event/event-logger.types.js";
// Factory
export { createLogger } from "./factory/factory.js";
export type {
ConsoleLoggerFactoryConfig,
EventLoggerFactoryConfig,
LoggerFactoryConfig,
StorageLoggerFactoryConfig,
} from "./factory/factory.types.js";
export type { InitLoggerOptions, InitLoggerResult } from "./init/init.js";
// Init
export { initLogger } from "./init/init.js";
export type { OtelTraceContext } from "./otel/otel-context.js";
// OTel
export { getOtelTraceContext } from "./otel/otel-context.js";
// Record
export {
buildRecord,
isLogLevel,
LOG_LEVEL_NAMES,
shouldLog,
} from "./record/log-record.js";
// Redaction
export { applyRedaction, RedactionEngine } from "./redaction/redaction.js";
export type {
RedactionOptions,
RedactionRule,
} from "./redaction/redaction.types.js";
// Sampling
export {
createSampler,
HeadSampler,
RuleSampler,
SampleAllSampler,
SampleNoneSampler,
TailSampler,
} from "./sampling/sampling.js";
export type {
Sampler,
SamplingDecision,
SamplingPolicy,
} from "./sampling/sampling.types.js";
export { BufferedSink } from "./sink/buffered-sink.js";
export { ConsoleSink } from "./sink/console-sink.js";
export { JsonSink } from "./sink/json-sink.js";
// Sink
export { closeSink, flushSink, isSink, MultiSink } from "./sink/sink.js";
export type {
BufferedSinkOptions,
ConsoleSinkOptions,
JsonSinkOptions,
OverflowPolicy,
Sink,
} from "./sink/sink.types.js";
// Storage
export { StorageLogger } from "./storage/storage-logger.js";
export type {
StorageInterface,
StorageLoggerConfig,
} from "./storage/storage-logger.types.js";