Support the ongoing development of Laravel.io →
posted 11 years ago
Packages

For the most part I've come to terms with workbench/packages - one thing I can't seem to figure out is how to get logging to work - as in Log::info("This is my message");

I end up with: Class 'Vendor\Name\Log' not found.

Can this be done? What am I missing?

Also, are there some good docs/tutorials on the workbench and creating packages ?

Thanks

Last updated 3 years ago.
0

Hi I'm getting the same error on a helper class in our app. The Log:info works in controllers but not on the helper class, if just tells me the "Class 'Helpers\Log' not found". Assume I need to extend/inject a base class or something so it can access the log object but no info as to how anywhere.

Any pointers anyone?

thanks

Last updated 3 years ago.
0

Maybe...

\Log::info("This is my message");
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mroth2014 mroth2014 Joined 24 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.

© 2025 Laravel.io - All rights reserved.