Skip to content
New issue

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

Cannot use Adonis Logger provider in Task #20

Open
nrempel opened this issue Jun 8, 2018 · 2 comments
Open

Cannot use Adonis Logger provider in Task #20

nrempel opened this issue Jun 8, 2018 · 2 comments
Labels

Comments

@nrempel
Copy link
Owner

nrempel commented Jun 8, 2018

It seems that using the Adonis Logger facility is not working inside of tasks.

const Logger = use('Logger')
Logger.info('log') // Does not print to console

@ntvsx193 I noticed that you set up logging so that you can do this.info('log'). What was the motivation for this? Is it possible to have both this.info and Logger.info work?

I haven't had time to dig into it yet but I'll try and take a look this weekend.

@nrempel nrempel added the bug label Jun 8, 2018
@ntvsx193
Copy link
Collaborator

ntvsx193 commented Jul 8, 2018

I'm see this problem in the days obscene

@ashishtechuz
Copy link

ashishtechuz commented Dec 3, 2019

this.info is not working for me as well. it gives weird log to console. converts string to array and printing each word as an array key.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants