@certicraft/logging
TypeScript icon, indicating that this package has built-in type declarations

1.1.10 • Public • Published

@certicraft/logging

Description

Our @certicraft/logging package is used to log information to the cloud logging service. The current API is not very user friendly and we would like to improve it.

Example Usage

import { CloudLogger } from '@certicraft/logging';

CloudLogger().setLabels({
    companyId: '123',
    userId: '456'
});


CloudLogger().info(
    `ensureContainerDocumentsExist snapshotVersion: ${snapshotVersion}`
);

CloudLogger().error(
    'Error while connecting redis'
);

const label = 'time based logging';

CloudLogger().time(label)
CloudLogger().timeLog(label, 'intermediary logging 1')
CloudLogger().timeLog(label, 'intermediary logging 2')
CloudLogger().timeEnd(label)

Deploying to NPM

npm login
npm publish --access public

Troubleshooting

If you're having problems with building the project, you can delete the file tsconfig.tsbuildinfo and run npm run build again.

Readme

Keywords

none

Package Sidebar

Install

npm i @certicraft/logging

Weekly Downloads

21

Version

1.1.10

License

UNLICENSED

Unpacked Size

44.9 kB

Total Files

36

Last publish

Collaborators

  • certicraft