-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.php
34 lines (27 loc) · 1.14 KB
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
require_once('./vendor/autoload.php');
require_once('./src/BuffLog/BuffLog.php');
use Buffer\BuffLog\Bufflog;
// putenv("LOG_VERBOSITY=WARNING");
BuffLog::debug("I am a debug string", 2, 2);
BuffLog::debug(["I am a"]);
BuffLog::debug("I am a", "test");
BuffLog::debug("I am a debug string", 2, 2);
BuffLog::debug("I am a debug with context", ["my key" => " my value"]);
BuffLog::info("I am an info");
BuffLog::info("I am a info with context", ["my key" => " my value"]);
BuffLog::warning("I am a warning");
BuffLog::warning("I am a warning", ["duration" => "40ms"]);
BuffLog::error(2);
BuffLog::error("I am an error", ["mean" => "70"]);
BuffLog::critical("I am criticals information with a typo and you shouldn't see me!");
BuffLog::critical("I am critical information!", ["user" => "betrand"]);
BuffLog::critical("I'm critical log, here some extra fancy informations",
[
"duration" => "40ms",
"services_related" => [
"Twitter",
"Facebook",
"Instagram"
]
]);