@neofork/devlogr - v0.0.1
    Preparing search index...

    Function createLogger

    • Factory function to create a new Logger instance with the specified prefix.

      This is the recommended way to create logger instances. The prefix helps identify log messages from different parts of your application and is used for spinner management.

      Parameters

      • prefix: string

        Unique identifier for this logger instance (e.g., 'api', 'deploy', 'build')

      Returns Logger

      A new Logger instance configured with the specified prefix

      import { createLogger } from '@neofork/devlogr';

      const log = createLogger('my-app');
      log.info('Application starting...');
      const apiLog = createLogger('api');
      const dbLog = createLogger('database');

      apiLog.info('Server started on port 3000');
      dbLog.info('Connected to database');