Logs

Class \Lib\Log

Introduction

This class provides you with a method to easily create logs about your webservices.
The logs are displayed in the back office console to help debug your application.

🚧

Notice

Pour que les logs soient visibles, ils doivent être activé dans le fichier app.xml

1

Basic usage

<?php

\Lib\Log::info("id of current user : ".$id);

So, by visiting your application's console and then clicking on your call, you will have your logs visible :

1563

Methods

info

<?php public static function info(string $mess)

Description
Adds and displays a log

Parameters
mess
The message to display.