2017 © Pedro Peláez
 

library udplog

image

lvht/udplog

  • Wednesday, March 15, 2017
  • by lvht
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

udplog

lvht/udplog is a PSR3 implementation, which sending log according RFC 5424., (*1)

Install

composer require lvht/udplog

Usage

<?php
$log = new Lvht\Udplog('ip addr', 'port');
$log->facility(LOG_KERN)
    ->hostname('foo.com')
    ->procid(8848)
    ->msgid('demo')
    ->appname('php');

$log->error('欢迎使用基于UDP的syslog协议发送日志!');
$log->info('欢迎使用基于UDP的syslog协议发送日志!');
$log->debug('欢迎使用基于UDP的syslog协议发送日志!');
$log->emergency('欢迎使用基于UDP的syslog协议发送日志!');

Status

duplog implements PSR3, so the API is stable. And I want to make it v1.0.0. However, duplog does not support the STRUCTURED-DATA. We will add this support in the future if needed., (*2)

The Versions

15/03 2017

dev-master

9999999-dev

  Sources   Download

The Requires

 

15/03 2017

v1.0.1

1.0.1.0

  Sources   Download

The Requires

 

14/03 2017

v1.0.0

1.0.0.0

  Sources   Download

The Requires