I have a solution.
I created a new Logger facade (i.e: TestLogger) and a new LogTestServiceProvider (a copy of LogServiceProvider).
I set the channel like this :
$logger = new Writer(
new Logger("TestLogger"), $this->app['events']
);
Now I have a new TestLogger facade, linked to the "TestLogger" channel.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community