2017 © Pedro Peláez
 

seaslog-extension slog

php log helper for seaslog

image

lyzy/slog

php log helper for seaslog

  • Wednesday, September 13, 2017
  • by lyzy
  • Repository
  • 0 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 35 % Grown

The README.md

php_log_helper

php_log_helper for SeasLog, (*1)

首先需要 安装 和 配置 SeasLog扩展

详细参考 官方文档, (*2)

编译安装 SeasLog

$ /path/to/phpize
$ ./configure --with-php-config=/path/to/php-config
$ make && make install

PECL安装SeasLog

$ pecl install seaslog

Windows环境中使用SeasLog

到PECL/SeasLog主页找到对应的dll进行安装 PECL/SeasLog Windows Dll, (*3)

安装php log helper for SeasLog

composer require lyzy/slog

使用

tips:本扩展包也可以当成SeasLog扩展编辑器语法提示使用, (*4)

<?php

use lyzy\SLog;

require_once "vendor/autoload.php";

SLog::log(SEASLOG_ERROR,'this is a error test by ::log');

SLog::debug('this is a {userName} debug',array('{userName}' => 'neeke'));

SLog::info('this is a info log');

SLog::notice('this is a notice log');

SLog::warning('your {website} was down,please {action} it ASAP!',array('{website}' => 'github.com','{action}' => 'rboot'));

SLog::error('a error log');

SLog::critical('some thing was critical');

SLog::alert('yes this is a {messageName}',array('{messageName}' => 'alertMSG'));

SLog::emergency('Just now, the house next door was completely burnt out! {note}',array('{note}' => 'it`s a joke'));

The Versions

13/09 2017

dev-master

9999999-dev

php log helper for seaslog

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by cnlyzy

log seaslog

13/09 2017

1.1

1.1.0.0

php log helper for seaslog

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by cnlyzy

log seaslog

13/09 2017

1.0

1.0.0.0

php log helper for seaslog

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by cnlyzy

log seaslog