2017 © Pedro Peláez
 

silverstripe-module silverstripe-easylogger

Module used to easily log stuff.

image

xmarkclx/silverstripe-easylogger

Module used to easily log stuff.

  • Tuesday, April 12, 2016
  • by xmarkclx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Silverstripe Easy Logger Module

Module used to easily log stuff easily for whatever purpose you can imagine., (*1)

This isn't meant to be Silverstripe specific. But was made while working on a SS project., (*2)

There is a default log file called 'notification.log' that gets created when you use the quick log functions, i.e. EasyLogger::qLog(). The reason for adding multiple log files is that you can segregate stuff you want to log easily., (*3)

sales.log
foodEaten.log
etc.

The reason this was made is to make it easy for us to see what is going on in the code asap, so we can just call EasyLogger::qLog('message') or EasyLogger::quickLogCaller($a) to see a backtrace., (*4)

Configuration

Zero Configuration!, (*5)

Default log file is (base_url)/notification.log., (*6)

Use custom logger feature to customize log file location., (*7)

How to use

Log message

EasyLogger::qLog('message');, (*8)

Log variable

EasyLogger::qLog($var);, (*9)

Log with call trace

EasyLogger::quickLogCaller($stuff);, (*10)

Custom logger

$logger = new EasyLogger('dir/filename');, (*11)

$loggger->log('message');, (*12)

The Versions

12/04 2016

dev-master

9999999-dev

Module used to easily log stuff.

  Sources   Download

The Requires

 

by Mark Christian D. Lopez

12/04 2016

1.1.1

1.1.1.0

Module used to easily log stuff.

  Sources   Download

The Requires

 

by Mark Christian D. Lopez

12/04 2016

1.1.0

1.1.0.0

Module used to easily log stuff.

  Sources   Download

The Requires

 

by Mark Christian D. Lopez

04/12 2014

1.0.x-dev

1.0.9999999.9999999-dev

Module used to easily log stuff.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Mark Christian D. Lopez

log

04/12 2014

1.x-dev

1.9999999.9999999.9999999-dev

Module used to easily log stuff.

  Sources   Download

The Requires

  • php >=5.3.0

 

04/12 2014

1.0.0

1.0.0.0

Module used to easily log stuff.

  Sources   Download

The Requires

  • php >=5.3.0