NextDom\Helpers\LogHelper
Class LogHelper
Synopsis
class LogHelper
{
- // methods
- public static bool addError()
- public static bool add()
- public static mixed getLogger()
- public static string getConfig()
- public static int|string getLogLevel()
- public static string getPathToLog()
- public static bool addInfo()
- public static bool addDebug()
- public static bool addCritical()
- public static bool addUpdate()
- public static bool addAlert()
- public static bool removeAll()
- public static bool remove()
- public static bool clear()
- public static bool authorizeClearLog()
- public static array|bool get()
- public static void chunk()
- public static void chunkLog()
- public static array liste()
- public static array getLogFileList()
- public static array getAllLogFileList()
- public static void define_error_reporting()
- public static mixed exception()
- public static string|null convertLogLevel()
Members
private
- $config — array
- $logger — array
Methods
public
- add() — Add a message to the log and ensure that there are never more than 1000 lines
- addAlert() — Log an alert message
- addCritical() — Log a critical message
- addDebug() — Log a debug
- addError() — Log an error
- addInfo() — Log an information
- addUpdate() — Log an update message
- chunk() — Reduce all logs files
- chunkLog() — Reduce log file to DEFAULT_MAX_LINES_IN_LOG
- clear() — Clear log file
- convertLogLevel() — Get log level name from log level value
- define_error_reporting() — Fixe le niveau de rapport d'erreurs PHP
- exception() — Get exception message
- get() — Get log file content
- getAllLogFileList() — Get list of all log files
- getConfig() — Get config data by key
- getLogFileList() — Get list of log files
- getLogLevel() — Get log level from config
- getLogger() — Get logger depends of target
- getPathToLog() — Get target path log (usually /var/log/nextdom)
- liste() — Get list of log files
- remove() — Delete log file
- removeAll() — Remove all log by deleting files