UNPKG

@loglayer/shared

Version:

Shared utilities and types for loglayer packages.

1 lines 1.48 kB
{"version":3,"sources":["/home/runner/work/loglayer/loglayer/packages/core/shared/dist/index.cjs","../src/common.types.ts"],"names":["LogLevel"],"mappings":"AAAA;ACAO,IAAK,SAAA,kBAAL,CAAA,CAAKA,SAAAA,EAAAA,GAAL;AACL,EAAAA,SAAAA,CAAA,MAAA,EAAA,EAAO,MAAA;AACP,EAAAA,SAAAA,CAAA,MAAA,EAAA,EAAO,MAAA;AACP,EAAAA,SAAAA,CAAA,OAAA,EAAA,EAAQ,OAAA;AACR,EAAAA,SAAAA,CAAA,OAAA,EAAA,EAAQ,OAAA;AACR,EAAAA,SAAAA,CAAA,OAAA,EAAA,EAAQ,OAAA;AACR,EAAAA,SAAAA,CAAA,OAAA,EAAA,EAAQ,OAAA;AANE,EAAA,OAAAA,SAAAA;AAAA,CAAA,CAAA,CAAA,SAAA,GAAA,CAAA,CAAA,CAAA;ADUZ;AACE;AACF,4BAAC","file":"/home/runner/work/loglayer/loglayer/packages/core/shared/dist/index.cjs","sourcesContent":[null,"export enum LogLevel {\n info = \"info\",\n warn = \"warn\",\n error = \"error\",\n debug = \"debug\",\n trace = \"trace\",\n fatal = \"fatal\",\n}\n\nexport type MessageDataType = string | number | boolean | null | undefined;\n\n/**\n * Options for the `errorOnly` method.\n * @see {@link https://loglayer.dev/logging-api/error-handling.html#error-only-logging | Error Only Logging Doc}\n */\nexport interface ErrorOnlyOpts {\n /**\n * Sets the log level of the error\n */\n logLevel?: LogLevel;\n /**\n * If `true`, copies the `error.message` if available to the transport library's\n * message property.\n *\n * If the config option `error.copyMsgOnOnlyError` is enabled, this property\n * can be set to `true` to disable the behavior for this specific log entry.\n */\n copyMsg?: boolean;\n}\n"]}