Skip to content
Interfacetypesv0.17.0

ILogger

One method per severity. msg is the printf-style template, args fill its specifiers and trail as extra fields.

interface ILogger
logger.error('Failed to load %s', url, { code: 404 });
logger.info('User %s has %d points and %f rating', username, points, rating, { extra: 'data' });