express-typescript-boilerplate icon indicating copy to clipboard operation
express-typescript-boilerplate copied to clipboard

How to use winston?

Open hamzamumtaz007 opened this issue 4 years ago • 0 comments

Can someone please tell me how can i log everything using winston, winston is already implemented here and as per the documentation here is how it's implemented:

import { Logger, LoggerInterface } from '../../decorators/Logger';

@Service() export class UserService {

constructor(
    @Logger(__filename) private log: LoggerInterface
) { }

How to use this?

hamzamumtaz007 avatar Sep 07 '21 09:09 hamzamumtaz007