An open API service indexing awesome lists of open source software.

https://github.com/ytake/fluent-logger-hack

A structured logger for Fluentd (Hack/HHVM)
https://github.com/ytake/fluent-logger-hack

fluentd hacklang logger

Last synced: about 1 month ago
JSON representation

A structured logger for Fluentd (Hack/HHVM)

Awesome Lists containing this project

README

          

# Fluent Logger Hack

## Requirements

HHVM 4.8 or higher
fluentd v0.9.20 or higher

## Example

```hack
require_once __DIR__ . '/vendor/hh_autoload.php';

use namespace Ytake\Fluent\Logger;

<<__EntryPoint>>
async function main(): Awaitable {
$logger = new Logger\FluentLoggerFactory();
await using ($l = $logger->getLogger('1.2.3.4')) {
$l->sendLogAsync('hack.testing', dict[
'message' => 'send.'
]);
};
}

```