augment-vir - v31.13.0
    Preparing search index...

    Type Alias Logger

    Logger: LoggerLogs & { if: (condition: boolean) => LoggerLogs }

    Type for the log export.

    Type declaration

    • if: (condition: boolean) => LoggerLogs

      Only logs if the given condition is true.

      import {log} from '@augment-vir/common';

      // this will log
      log.if(true).info('hi');
      // this will not log
      log.if(false).info('hi');