You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`setWorkDirectory`| Specifies the root directory of the hierarchy of logging levels. It can take several directories in turn one after the other in the form of a standard path. |`setWorkDirectory('logging')` <br> `setWorkDirectory('logging/sub-folder')`|
23
+
|`setLevel`| Specifies the name of the directory where you want to save the logging file. It can't take several directories in turn one after the other in the form of a standard path. |`setLevel('requests')`|
24
+
|`setTimeZone`| Specifies the current timezone. |`setTimeZone('UTC')` <br> `setTimeZone('Europe/Amsterdam')`|
25
+
|`setDateFormat`| Sets the time format in the main key of one log element in the logging file. Will not be used if V is specified. |`setDateFormat('H:i:s')` <br> `setDateFormat('(Y) H:i:s')`|
26
+
|`setItemKey`| Sets the primary key of one log element in the logging file. In this case, the current time will not be indicated. |`setItemKey('custom-key')`|
27
+
|`setItemsLimit`| Sets the maximum number of elements in a single logging file. The value must be greater than zero. By default, 1000 keys. |`setItemsLimit(10)` <br> `setItemsLimit(5000)`|
28
+
|`setPermissions`| Sets access rights to the logging file. |`setLogFilePermissions(0755)` <br> `setLogFilePermissions(644)`|
29
+
|`setFileName`| Sets the name of the logging file. |`setFileName('my-requests-logs')`|
30
+
|`error`| Logging any object as an error message. | Similarly as for `custom`. |
31
+
|`warning`| Logging any object as a warning. | Similarly as for `custom`. |
32
+
|`info`| Logging of any object as an informational message. | Similarly as for `custom`. |
33
+
|`custom`| Logging of any object. |`custom(new SomeClass())` <br> `custom('Some message')` <br> `custom(['key' => 'value'])`|
34
+
|`exception`| Logging of the exception object with the possibility of adding additional keys. |`exception(new \Exceptions())` <br> `exception(new \Exceptions(), true)` <br> `exception(new \Exceptions(), false, ['key' => 'value'])`|
35
+
|`clearLevel`| The requirement to clear the directory where the logging file should be saved from other files. |`clearLevel()`|
0 commit comments