Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration
Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

storm23 storm23 Joined 21 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.