2017 © Pedro Peláez
 

library yii2fluentd

This is a lightweight client library of fluentd

image

iamgold/yii2fluentd

This is a lightweight client library of fluentd

  • Wednesday, March 28, 2018
  • by iamgold
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 20 % Grown

The README.md

Fluentd Client for Yii2

This is a lightweight client library of fluentd. It be a component in Yii2., (*1)

Config setting

Injected the code belows into config file of web.php or console.php, (*2)

    'fluentd' => [
        'class' => 'iamgold\yii2fluentd\Fluentd',
        'endpoint' => [endpoint of fluentd http server]
    ]

Usage

    Yii::$app->fluentd->send($tag, $params);

Methods

    /**
     * send message
     *
     * @param string $tag
     * @param array $params
     * @return ResponseInterface
     */
    public function send(string $tag, array $params)

ResponseInterface Methods

    /**
     * is success
     *
     * @return bool
     */
    public function isSuccess();

    /**
     * get status code
     *
     * @return int
     */
    public function getStatusCode();

    /**
     * get error message
     *
     * @return string
     */
    public function getErrorMessage();

The Versions

28/03 2018

dev-release

dev-release

This is a lightweight client library of fluentd

  Sources   Download

The Requires

 

by Eric Huang

28/03 2018

1.0.0

1.0.0.0

This is a lightweight client library of fluentd

  Sources   Download

The Requires

 

by Eric Huang

28/03 2018

dev-master

9999999-dev

This is a lightweight client library of fluentd

  Sources   Download

The Requires

 

by Eric Huang

28/03 2018

0.8.0

0.8.0.0

This is a lightweight client library of fluentd

  Sources   Download

The Requires

 

by Eric Huang