logger
Simple logger that has 4 different preset functions.
Usage
- Import Logger from index
- Create new Logger (pass in custom header if necessary)
- Use the 4 provided logger functions!
Example
TypeScript:
import { Logger } from 'logger';
const logger: Logger = new Logger('Logger');
logger.success('Logger is working!');
JavaScript:
const Logger = require('logger');
const logger = new Logger('Logger');
logger.success('Logger is working');
Functionality
Logger has 4 logging functions.
Logger.success(message: string)
- logs in greenLogger.info(message: string)
- logs in blueLogger.warn(message: string)
- logs in yellowLogger.error(message: string)
- logs in red