2017 © Pedro Peláez
 

library system-log

Log for Phramework

image

phramework/system-log

Log for Phramework

  • Monday, January 18, 2016
  • by nohponex
  • Repository
  • 3 Watchers
  • 1 Stars
  • 6,287 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

system-log

system-log environment for phramework, (*1)

Usage

composer require phramework/system-log

Edit your application's index.php, create a new SystemLog object and call it's register method before phramework is invoked., (*2)

For example:, (*3)

<?php
use \Phramework\Phramework;
use \Phramework\SystemLog;

$settings = [
    'system-log' => [
        'log' => '\\Phramework\\SystemLog\\Log\\TerminalLog',
        'matrix' => [
            'Me\\APP\\Controllers\\DummyController::GET'
                =>    SystemLog::LOG_REQUEST_HEADER_AGENT
                    | SystemLog::LOG_REQUEST_PARAMS
        ],
        'matrix-exception' => [
            'Exception'
                =>    SystemLog::LOG_STANDARD,
            'Phramework\\Exceptions\\ServerException'
                =>    SystemLog::LOG_REQUEST_HEADER_AGENT
                    | SystemLog::LOG_REQUEST_PARAMS
                    | SystemLog::LOG_RESPONSE_BODY
                    | SystemLog::LOG_REQUEST_HEADERS
        ]
    ]
];

$phramework = new Phramework(
    $settings,
    new \Phramework\URIStrategy\URITemplate([])
);

$systemLog = new SystemLog($settings['system-log']);
$systemLog->register();

$phramework->invoke();

Development

Install

composer update

Test and lint code

composer lint
composer test

License

Copyright 2015 - 2016 Xenofon Spafaridis, (*4)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at, (*5)

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License., (*6)

The Versions

18/01 2016

dev-master

9999999-dev https://phramework.github.io/

Log for Phramework

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Alexandros Kalliontzis

08/01 2016

0.0.0-RC1

0.0.0.0-RC1 https://phramework.github.io/

Log for Phramework

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Alexandros Kalliontzis

07/01 2016

0.0.0-RC

0.0.0.0-RC https://phramework.github.io/

Log for Phramework

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Alexandros Kalliontzis