2017 © Pedro Peláez
 

library hubert-logger

Hubert extension for logging

image

falkm/hubert-logger

Hubert extension for logging

  • Sunday, September 3, 2017
  • by falkmueller
  • Repository
  • 1 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Hubert Logger Extension

Installation

Hubert is available via Composer:, (*1)

{
    "require": {
        "falkm/hubert-logger": "1.*"
    }
}

Usage

Create an index.php file with the following contents:, (*2)

<?php

require 'vendor/autoload.php';

$app = new hubert\app();

$config = array(
    "factories" => array(
         "logger" => array(hubert\extension\logger\factory::class, 'get')
        ),
    "config" => array(
        "display_errors" => true,
        "logger" => array(
                "path" => __dir__.'/logs/',
            )
        ),
    "routes" => array(
        "home" => array(
            "route" => "/", 
            "method" => "GET|POST", 
            "target" => function($request, $response, $args){
                hubert()->logger->error("test-error");
                echo "show in log-folder: ".hubert()->config()->logger["path"];
            })
    ),

);

hubert($config);
hubert()->core()->run();

For more see the example in this repository., (*3)

components

License

The MIT License (MIT). Please see License File for more information., (*4)

The Versions

03/09 2017

dev-master

9999999-dev http://falk-m.de/

Hubert extension for logging

  Sources   Download

MIT

The Requires

 

The Development Requires

by Falk Müller

framework php

03/09 2017

1.1.1

1.1.1.0 http://falk-m.de/

Hubert extension for logging

  Sources   Download

MIT

The Requires

 

The Development Requires

by Falk Müller

framework php

14/11 2016

1.1.0

1.1.0.0 http://falk-m.de/

Hubert extension for logging

  Sources   Download

MIT

The Requires

 

The Development Requires

by Falk Müller

framework php

11/11 2016

1.0.1

1.0.1.0 http://falk-m.de/

Hubert extension for logging

  Sources   Download

MIT

The Requires

 

The Development Requires

by Falk Müller

framework php

03/11 2016

1.0.0

1.0.0.0 http://falk-m.de/

Hubert extension for logging

  Sources   Download

MIT

The Requires

 

The Development Requires

by Falk Müller

framework php