Skip to main content

Quickstart

import { getLogger } from '@quik/core';

getLogger().info('App started');
getLogger().error('Something failed', { userId: 42 });

Notes

  • @quik/logging's setup() builds the logger from logs.type/logs.level/logs.enabled and installs it as the IQLogger feature — call getLogger() (from @quik/core) anywhere after module setup instead of constructing a logger directly.
  • Available methods: info, error, warn, debug, verbose, silly — each accepts a message plus optional metadata arguments, matching Winston's logger surface.
  • QConsoleLogger and QJSONLogger are exported directly if you need to construct a logger outside the module setup flow (e.g. for a standalone script).