Nasal Piercings Manipulator

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

    0.0.69 • Public • Published

    @fulfilld/app-logging

    Usage

    // execute once in your application entrypoint
    initDebugGlobals({
        application: '[friendly app name]'
    });
    
    // retrive a logger identified by the options provided
    const logger = getLogger({
      module: 'Auth',
      component: 'User Authentication',
      class: 'UserAuthController'
    });
    
    // write a log line
    logger.debug('Received token from Oauth provider for user ${username}');
    
    // log an error object
    try {} catch (err) {
        logger.error(err);
    }

    Examples

    # execute in a shell
    ENVIRONMENT=local npx ts-node src/examples/app-test.ts

    Keywords

    none

    Install

    npm i @fulfilld/app-logging

    DownloadsWeekly Downloads

    565

    Version

    0.0.69

    License

    ISC

    Unpacked Size

    28.6 kB

    Total Files

    36

    Last publish

    Collaborators

    • shannonatfulfilld