2017 © Pedro Peláez
 

library logging

Simple callback-based logging infrastructure

image

earthit/logging

Simple callback-based logging infrastructure

  • Thursday, January 5, 2017
  • by TOGoS
  • Repository
  • 5 Watchers
  • 0 Stars
  • 3,714 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

EarthIT_Logging

This is an exceedingly simple framework for logging arbitrary events., (*1)

A logger is simply a function that is called with a single argument, which is a representation of the event to be logged. The only constraint is that said log event should be either a string or an object that supports __toString., (*2)

One event class is predefined, EarthIT_Logging_AnnotatedEvent. This wraps another log event and associated metadata such as log level or begin and end times, which your logging function may look at., (*3)

A LogHelperGears trait is defind that makes it easier to create and log EarthIT_Logging_AnnotatedEvents by calling $this->debug(...), $this->log(...), or $this->warn(...)., (*4)

A few basic logging classes are provided, also., (*5)

The Versions

05/01 2017

dev-master

9999999-dev

Simple callback-based logging infrastructure

  Sources   Download

MIT

The Requires

  • php >=5.2

 

The Development Requires

05/01 2017

1.1.1

1.1.1.0

Simple callback-based logging infrastructure

  Sources   Download

MIT

The Requires

  • php >=5.2

 

The Development Requires

05/01 2017

1.1.0

1.1.0.0

Simple callback-based logging infrastructure

  Sources   Download

MIT

The Requires

  • php >=5.2

 

The Development Requires

04/01 2017

1.0.0

1.0.0.0

Simple callback-based logging infrastructure

  Sources   Download

MIT

The Requires

  • php >=5.2

 

The Development Requires