2017 © Pedro Peláez
 

library jv-log

Use this module to generate and store logs of errors on your site, option to send logs via email using the module JVMail.

image

jaimevalasek/jv-log

Use this module to generate and store logs of errors on your site, option to send logs via email using the module JVMail.

  • Thursday, October 3, 2013
  • by jaimevalasek
  • Repository
  • 2 Watchers
  • 2 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JVLog - JV Log

Create By: Jaime Marcelo Valasek, (*1)

Use this module to generate and store logs of errors on your site, option to send logs via email using the module JVMail., (*2)

Futures video lessons can be developed and published on the website or Youtube channel http://www.zf2.com.br/tutoriais http://www.youtube.com/zf2tutoriais, (*3)

Installation

Download this module into your vendor folder. - Also install the module JVMail - https://github.com/jaimevalasek/JVMail., (*4)

After done the above steps, open the file config/application.config.php. And add the module with the name JVLog., (*5)

Using the JVLog

  • Access the file that is inside the module.config.php JVLog module and check the settings.
  • The option notify equal true, sends email notification to the email configured below.
  • To send an email notification jvmail the module must be installed, however if you do not use the email notification is not necessary to install it.
  • The logs folder should be created within the directory data being as follows ./data/logs
'JVLog' => array(
    'notificationMail' => array(
        'notify' => false,
        'priorities' => array(
            '0' => 'Emergency',
            '2' => 'Critical',
            '3' => 'Error',
            '4' => 'Warning',
            '5' => 'Debug'
        ),
        'email' => 'user@domain.com'
    )
),
  • Create phtml to send the log via email, if you use the sending via email.
  • Create phtml inside the folder view/mailtemplates/log-exception.phtml module of your application.
<h1><?php echo $this->subject?></h1>
<p>
<?php echo nl2br($this->log)?>
</p>

The Versions

03/10 2013

dev-master

9999999-dev https://github.com/jaimevalasek/JVLog

Use this module to generate and store logs of errors on your site, option to send logs via email using the module JVMail.

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 zf2 log exception log zf2