-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoggerInterface.php
More file actions
110 lines (98 loc) · 2.22 KB
/
Copy pathLoggerInterface.php
File metadata and controls
110 lines (98 loc) · 2.22 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : Interfaces Classes Component
* @version : 1.5.x
* @copyright : (c) 2018 - 2025 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file is a part of FloatPHP Framework.
*/
namespace FloatPHP\Interfaces\Classes;
interface LoggerInterface
{
/**
* Init logger.
*
* @param string $path
* @param string $filename
* @param string $extension
*/
function __construct(string $path = '/', string $filename = 'debug', string $extension = 'log');
/**
* Set log path.
*
* @param string $path
* @return object
*/
function setPath(string $path) : self;
/**
* Get log path.
*
* @return string
*/
function getPath() : string;
/**
* Set log filename.
*
* @param string $filename
* @return object
*/
function setFilename(string $filename) : self;
/**
* Set log extension.
*
* @param string $extension
* @return object
*/
function setExtension(string $extension) : self;
/**
* Log debug message.
*
* @param mixed $message
* @param bool $isArray
* @return bool
*/
function debug($message, bool $isArray = false) : bool;
/**
* Log error message.
*
* @param string $message
* @return bool
*/
function error(string $message) : bool;
/**
* Log warning message.
*
* @param string $message
* @return bool
*/
function warning(string $message) : bool;
/**
* Log info message.
*
* @param string $message
* @return bool
*/
function info(string $message) : bool;
/**
* Log custom message.
*
* @param string $message
* @param string $type
* @return bool
*/
function custom(string $message, string $type = 'custom') : bool;
/**
* Log natif error.
*
* @param string $message
* @param int $type 0
* @param string $path
* @param string $headers
* @return bool
*/
function log(string $message, int $type = 0, ?string $path = null, ?string $headers = null) : bool;
}