Simple logger utility for Tailor applications
npm install @tailor-platform/function-loggerSimple logger utility for Tailor Function applications.
``bash`
npm install @tailor-platform/function-logger
`typescript
import logger from '@tailor-platform/function-logger';
// Log messages at different levels
logger.debug('Debug message', { extra: 'data' });
logger.info('Info message');
logger.warn('Warning message');
logger.error('Error message', new Error('Something went wrong'));
`
The logger provides four log levels:
- debug: For detailed debugging informationinfo
- : For general informational messageswarn
- : For warning messageserror
- : For error messages
Each method accepts a message string and optional additional arguments that will be logged.
`bash``
npm run build