Skip to main content
Scaffolds a logger class and its test file into the target module. It writes modules/<module>/src/loggers/<Name>Logger.ts and modules/<module>/tests/loggers/<Name>Logger.spec.ts, and installs the @ooneex/logger dependency if it is missing.

Usage

ooneex logger:create [options]

Examples

ooneex logger:create
ooneex logger:create --name=Audit
ooneex logger:create --name=Audit --module=auth --override

Options

OptionDescriptionDefault
--nameResource name (the Logger suffix is appended automatically).Prompted if omitted
--moduleTarget module.shared
--overrideOverwrite an existing file without confirmation.false

AI Skill

This command ships a matching logger:create skill. Your AI agent uses it to generate a new logger class and its test file, then implement init and the log, debug, info, success, warn, and error methods for the ILogger interface from @ooneex/logger.
ooneex claude:init