adonis-scheduler icon indicating copy to clipboard operation
adonis-scheduler copied to clipboard

Cannot use Adonis Logger provider in Task

Open nrempel opened this issue 6 years ago • 2 comments

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 avatar Jun 08 '18 20:06 nrempel

I'm see this problem in the days obscene

ntvsx193 avatar Jul 08 '18 10:07 ntvsx193

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

ashishtechuz avatar Dec 03 '19 05:12 ashishtechuz