We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
可以用自己封装一个provider
import { Logger, Injectable } from '@nestjs/common'; @Injectable() export class Log extends Logger { readonly isLog = true; // TODO 正式版本一定需要改成false w(key: string, content: any) { if (this.isLog) { this.warn(content, key); } } i(key: string, content: any) { if (this.isLog) { this.log(content, key); } } e(key: string, content: any) { if (this.isLog) { this.error(content, key); } } }
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: