Jump to content

Question

Posted

I have been creating a custom module to learn blesta. I want to be able to print custom logs in the methods that I am implementing to be able to see the flows from the backend.

How can I do this??

1 answer to this question

Recommended Posts

  • 0
Posted
1 hour ago, felipe.rivero said:

I have been creating a custom module to learn blesta. I want to be able to print custom logs in the methods that I am implementing to be able to see the flows from the backend.

How can I do this??

in module class, you can use the core log function $this->log(); sample like

 

                $this->log(

                    'server name',

                    serialize(['var' => $params['username'], 'var_2' => 'some value']),

                    'input', // this can be also 'output'

                    true // this can be false in case of error

                );

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...