Marginal on its own - the browser console already exists - which is why this
stays small: a named category per system, four levels, a filter, and a sink
tests can capture instead of the console.
Example
import { Logger } from'@datamoc/mw_games/core';
constlog = newLogger('combat', { level:'info' }); // debug entries are filtered out log.info('turn started', { turn:3 }); log.warn('attack missed unexpectedly');
Categories and severity over bare
console.log.Marginal on its own - the browser console already exists - which is why this stays small: a named category per system, four levels, a filter, and a sink tests can capture instead of the console.
Example