@loopback/example-log-extension not write any log? #7763
Unanswered
Vn-ChemGio
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It looks like you're trying to use one of the example packages ( Perhaps @loopback/logging is what you were looking for? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guy.
I'm using loopback 4 and try to use module @loopback/example-log-extension to display log
In application.ts, I were wrap BootMixin by LogMixin
LogMixin(BootMixin(
ServiceMixin(RepositoryMixin(RestApplication)),
))
And add @log(LOG_LEVEL.DEBUG) to controller
export class PingController {
constructor(@Inject(RestBindings.Http.REQUEST) private req: Request) {}
But when I call api localhost:3000/ping
Nothing show in console log
So, what I have to do? or where I can see log file
Beta Was this translation helpful? Give feedback.
All reactions