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 @talosjs/logger dependency if it is missing.

Usage

talos logger:create [options]

Examples

talos logger:create
talos logger:create --name=Audit
talos 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 @talosjs/logger.
talos claude:init