diff --git a/packages/cactus-common/src/main/typescript/log-level.ts b/packages/cactus-common/src/main/typescript/log-level.ts new file mode 100644 index 0000000000..1c083bf1ed --- /dev/null +++ b/packages/cactus-common/src/main/typescript/log-level.ts @@ -0,0 +1,18 @@ +export const LogLevel = { + TRACE: 0, + DEBUG: 1, + INFO: 2, + WARN: 3, + ERROR: 4, + SILENT: 5, +} as const; +export type LogLevelNumbers = (typeof LogLevel)[keyof typeof LogLevel]; +export type LogLevelDesc = + | LogLevelNumbers + | "trace" + | "debug" + | "info" + | "warn" + | "error" + | "silent" + | keyof typeof LogLevel; diff --git a/packages/cactus-common/src/main/typescript/public-api.ts b/packages/cactus-common/src/main/typescript/public-api.ts index 6dd0e177d0..c3ce443cbe 100755 --- a/packages/cactus-common/src/main/typescript/public-api.ts +++ b/packages/cactus-common/src/main/typescript/public-api.ts @@ -1,6 +1,7 @@ export { LoggerProvider } from "./logging/logger-provider"; export { Logger, ILoggerOptions } from "./logging/logger"; -export { LogLevelDesc } from "loglevel"; +export { LogLevel, LogLevelNumbers, LogLevelDesc } from "./log-level"; + export { Objects } from "./objects"; export { Strings } from "./strings"; export { Bools } from "./bools"; diff --git a/tools/custom-checks/get-all-tgz-path.ts b/tools/custom-checks/get-all-tgz-path.ts index d95bf71fb5..19d44af963 100644 --- a/tools/custom-checks/get-all-tgz-path.ts +++ b/tools/custom-checks/get-all-tgz-path.ts @@ -58,8 +58,6 @@ export async function getAllTgzPath(): Promise { "packages/cactus-verifier-client/hyperledger-cactus-verifier-client-*.tgz", // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3634 "packages/cactus-plugin-ledger-connector-polkadot/hyperledger-cactus-plugin-ledger-connector-polkadot-*.tgz", - // link for issue ticket relating to this package: https://github.com/hyperledger-cacti/cacti/issues/3635 - "packages/cactus-common/hyperledger-cactus-common-*.tgz", ], };