Jump to content
  • 0

How to print custom logs in blesta?


felipe.rivero

Question

1 answer to this question

Recommended Posts

  • 0
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

                );

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...