Skip to content

Commit 45de79b

Browse files
committed
Add examples
1 parent 9ce1581 commit 45de79b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

example.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
require_once('./src/php-bufflog/BuffLog.php');
3+
4+
use Buffer\Bufflog;
5+
6+
Bufflog::debug("I am a debug");
7+
Bufflog::debug("I am a debug with context", ["my key" => " my value"]);
8+
9+
Bufflog::info("I am an info");
10+
Bufflog::debug("I am a info with context", ["my key" => " my value"]);
11+
12+
Bufflog::warn("I am a warning");
13+
Bufflog::warn("I am a warning", ["duration" => "40ms"]);
14+
15+
Bufflog::error("I am an error");
16+
Bufflog::error("I am an error", ["mean" => "70"]);
17+
18+
Bufflog::critical("I am critical information!");
19+
Bufflog::critical("I am critical information!", ["user" => "betrand"]);

0 commit comments

Comments
 (0)