Skip to content

Cell - Logger Component with winston ​

Replaces the default console Logger of @celljs/core with one backed by winston.

bash
npm install @celljs/logger

Nothing else changes in your code: components keep injecting @Autowired(Logger).

yaml
logger:
  level: debug                 # default info
  winstonConfig:               # merged into the winston options
    defaultMeta: { service: my-app }

The level comes from logger.level (default info); logger.winstonConfig is merged into the winston options. The per-request access log of @celljs/web is written at debug, so it is not printed by default; set logger.level: debug (or CELL_LOGGER__LEVEL=debug) to see it.