logs/logs_hub

Maintainers

Package info

github.com/Odai-Atef/logs_hub_php

pkg:composer/logs/logs_hub

Statistics

Installs: 4 694

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.8 2021-01-03 10:40 UTC

This package is auto-updated.

Last update: 2026-03-01 00:33:10 UTC


README

Installation

composer require logs/logs_hub

Available functions

We have 4 types of logs:

  • warning
  • error
  • critical
  • info

Function Parameters

For each function we have five parameters three of them are required and the others are optional

  • message (*)
  • level (*)
  • application (*)
  • user_id
  • extra_data

env file

The file contains the path of logs file and code for each level

Usage & Examples

use logs\logs_hub; $logs = new logs_hub();

  • $logs->warning("MESSAGE","NEWS",3,{"key":"value"});
  • $logs->error("MESSAGE","NEWS",3);
  • $logs->info("MESSAGE","NEWS");
  • $logs->critical("MESSAGE","NEWS",None,{"key":"value"});

License

Odai Atef Free to use