2017 © Pedro Peláez
 

project smtlogger

An outbox logger for u

image

smtlogger/smtlogger

An outbox logger for u

  • Friday, December 22, 2017
  • by php-cpm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 264 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

SmtLogger

when using frameworks we found it is hard to extend local loggers, (*1)

after all, we need to write logs to many paths for each own business, (*2)

so this came out, (*3)

Versions

  • 1.X for monolog 1.X and php 5.6+
  • 2.X for monolog 2.X and php 7.3+

Processors

  • HostNameProcessor logs machine name
  • HostProcessor logs machine ipv4 address, it is likely to be a internal ip
  • RequestIdProcessor logs a special id for each request, (*4)

    3 simple Processors to make each log more readable on large scale applications, (*5)

HOW TO USE

use SmtLogger\Logger;

Logger::getDefaultLogger()->addInfo('WHATEVER U WANT TO LOG IN A LINE OF STRING');

you may set PHP environment variables SMT_LOG_PATH and SMT_EXCEPTION_LOG_PATH to move logs to other paths,may be use dotEnv, (*6)

SMT_LOG_PATH=/tmp/my_logs/

you may extends SmtLogger\SmtLogger to make your own Logger, (*7)

The Versions

22/12 2017

dev-master

9999999-dev

An outbox logger for u

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger monolog

22/12 2017

v1.0.0

1.0.0.0

An outbox logger for u

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger monolog