Documentation

Log

Log trait, `use` it in every class you want to use the monolog logger

use VeruA\Log; // declare the namespace

class Whatever
{
    use Log; // use the trait in the class

	   public function example()
	   {
        // ...
	       // now you can use the log() method
	       $this->log()->debug('your log message');
        // ...
	   }
}

Table of Contents


        
On this page
  • Table Of Contents

Search results