@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.1039latest
1.0.61beta

Version History

VersionDownloads (Last 7 Days)Published
1.1.1039
1.1.91
1.1.81
1.1.71
1.1.61
1.1.51
1.1.41
1.1.31
1.1.21
1.1.11
1.1.01
1.0.111
1.0.101
1.0.91
1.0.81
1.0.71
1.0.61
1.0.6-beta.121
1.0.6-beta.111
1.0.6-beta.101
1.0.6-beta.91
1.0.6-beta.81
1.0.6-beta.71
1.0.6-beta.61
1.0.6-beta.51
1.0.6-beta.41
1.0.6-beta.31
1.0.6-beta.21
1.0.6-beta.11
1.0.6-beta.01
1.0.51
1.0.41
1.0.21
1.0.12
1.0.01

Package Sidebar

Install

npm i @certicraft/logging

Weekly Downloads

34

Version

1.1.10

License

UNLICENSED

Unpacked Size

44.9 kB

Total Files

36

Last publish

Collaborators

  • certicraft