-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
492 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ An effective,fast,stable log extension for PHP | |
- **[Constants and functions](#constants-and-functions)** | ||
- [Constant list](#constant-list) | ||
- [Function list](#function-list) | ||
- **[PHP Re result](#php-re-result)** | ||
- **[The useage of seaslog logger](#the-useage-of-seaslog-logger)** | ||
- [Get and set base path](#get-and-set-base-path) | ||
- [Get and set logger](#get-and-set-logger) | ||
|
@@ -388,6 +389,251 @@ class SeasLog | |
|
||
``` | ||
|
||
### PHP Re result | ||
|
||
```php | ||
/usr/local/php/php-7.0.6-zts-debug/bin/php --re seaslog | ||
|
||
Extension [ <persistent> extension #32 SeasLog version 1.6.9 ] { | ||
|
||
- Dependencies { | ||
} | ||
|
||
- INI { | ||
Entry [ seaslog.default_basepath <ALL> ] | ||
Current = '/var/log/www' | ||
} | ||
Entry [ seaslog.default_logger <ALL> ] | ||
Current = 'defauult' | ||
} | ||
Entry [ seaslog.default_datetime_format <ALL> ] | ||
Current = 'Y:m:d H:i:s' | ||
} | ||
Entry [ seaslog.disting_type <ALL> ] | ||
Current = '0' | ||
} | ||
Entry [ seaslog.disting_by_hour <ALL> ] | ||
Current = '0' | ||
} | ||
Entry [ seaslog.use_buffer <ALL> ] | ||
Current = '1' | ||
} | ||
Entry [ seaslog.trace_error <ALL> ] | ||
Current = '1' | ||
} | ||
Entry [ seaslog.trace_exception <ALL> ] | ||
Current = '1' | ||
} | ||
Entry [ seaslog.buffer_size <ALL> ] | ||
Current = '10' | ||
} | ||
Entry [ seaslog.level <ALL> ] | ||
Current = '0' | ||
} | ||
Entry [ seaslog.appender <ALL> ] | ||
Current = '1' | ||
} | ||
Entry [ seaslog.remote_host <ALL> ] | ||
Current = '127.0.0.1' | ||
} | ||
Entry [ seaslog.remote_port <ALL> ] | ||
Current = '514' | ||
} | ||
} | ||
|
||
- Constants [16] { | ||
Constant [ string SEASLOG_VERSION ] { 1.6.9 } | ||
Constant [ string SEASLOG_AUTHOR ] { Chitao.Gao [ [email protected] ] } | ||
Constant [ string SEASLOG_ALL ] { all } | ||
Constant [ string SEASLOG_DEBUG ] { debug } | ||
Constant [ string SEASLOG_INFO ] { info } | ||
Constant [ string SEASLOG_NOTICE ] { notice } | ||
Constant [ string SEASLOG_WARNING ] { warning } | ||
Constant [ string SEASLOG_ERROR ] { error } | ||
Constant [ string SEASLOG_CRITICAL ] { critical } | ||
Constant [ string SEASLOG_ALERT ] { alert } | ||
Constant [ string SEASLOG_EMERGENCY ] { emergency } | ||
Constant [ integer SEASLOG_DETAIL_ORDER_ASC ] { 1 } | ||
Constant [ integer SEASLOG_DETAIL_ORDER_DESC ] { 2 } | ||
Constant [ integer SEASLOG_APPENDER_FILE ] { 1 } | ||
Constant [ integer SEASLOG_APPENDER_TCP ] { 2 } | ||
Constant [ integer SEASLOG_APPENDER_UDP ] { 3 } | ||
} | ||
|
||
- Functions { | ||
Function [ <internal:SeasLog> function seaslog_get_version ] { | ||
} | ||
Function [ <internal:SeasLog> function seaslog_get_author ] { | ||
} | ||
} | ||
|
||
- Classes [1] { | ||
Class [ <internal:SeasLog> class SeasLog ] { | ||
|
||
- Constants [0] { | ||
} | ||
|
||
- Static properties [0] { | ||
} | ||
|
||
- Static methods [19] { | ||
Method [ <internal:SeasLog> static public method setBasePath ] { | ||
|
||
- Parameters [1] { | ||
Parameter #0 [ <required> $base_path ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method getBasePath ] { | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method setLogger ] { | ||
|
||
- Parameters [1] { | ||
Parameter #0 [ <required> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method getLastLogger ] { | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method setDatetimeFormat ] { | ||
|
||
- Parameters [1] { | ||
Parameter #0 [ <required> $format ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method getDatetimeFormat ] { | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method analyzerCount ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $level ] | ||
Parameter #1 [ <optional> $log_path ] | ||
Parameter #2 [ <optional> $key_word ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method analyzerDetail ] { | ||
|
||
- Parameters [6] { | ||
Parameter #0 [ <required> $level ] | ||
Parameter #1 [ <optional> $log_path ] | ||
Parameter #2 [ <optional> $key_word ] | ||
Parameter #3 [ <optional> $start ] | ||
Parameter #4 [ <optional> $limit ] | ||
Parameter #5 [ <optional> $order ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method getBuffer ] { | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method flushBuffer ] { | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method log ] { | ||
|
||
- Parameters [4] { | ||
Parameter #0 [ <required> $level ] | ||
Parameter #1 [ <optional> $message ] | ||
Parameter #2 [ <optional> $content ] | ||
Parameter #3 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method debug ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method info ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method notice ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method warning ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method error ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method critical ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method alert ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
|
||
Method [ <internal:SeasLog> static public method emergency ] { | ||
|
||
- Parameters [3] { | ||
Parameter #0 [ <required> $message ] | ||
Parameter #1 [ <optional> $content ] | ||
Parameter #2 [ <optional> $logger ] | ||
} | ||
} | ||
} | ||
|
||
- Properties [0] { | ||
} | ||
|
||
- Methods [2] { | ||
Method [ <internal:SeasLog, ctor> public method __construct ] { | ||
} | ||
|
||
Method [ <internal:SeasLog, dtor> public method __destruct ] { | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
``` | ||
|
||
|
||
### The useage of seaslog logger | ||
#### Get and set base path | ||
```php | ||
|
Oops, something went wrong.