Skip to content

Commit 119902c

Browse files
committed
update README
1 parent cd5c104 commit 119902c

File tree

2 files changed

+492
-0
lines changed

2 files changed

+492
-0
lines changed

README.md

+246
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ An effective,fast,stable log extension for PHP
2020
- **[Constants and functions](#constants-and-functions)**
2121
- [Constant list](#constant-list)
2222
- [Function list](#function-list)
23+
- **[PHP Re result](#php-re-result)**
2324
- **[The useage of seaslog logger](#the-useage-of-seaslog-logger)**
2425
- [Get and set base path](#get-and-set-base-path)
2526
- [Get and set logger](#get-and-set-logger)
@@ -388,6 +389,251 @@ class SeasLog
388389

389390
```
390391

392+
### PHP Re result
393+
394+
```php
395+
/usr/local/php/php-7.0.6-zts-debug/bin/php --re seaslog
396+
397+
Extension [ <persistent> extension #32 SeasLog version 1.6.9 ] {
398+
399+
- Dependencies {
400+
}
401+
402+
- INI {
403+
Entry [ seaslog.default_basepath <ALL> ]
404+
Current = '/var/log/www'
405+
}
406+
Entry [ seaslog.default_logger <ALL> ]
407+
Current = 'defauult'
408+
}
409+
Entry [ seaslog.default_datetime_format <ALL> ]
410+
Current = 'Y:m:d H:i:s'
411+
}
412+
Entry [ seaslog.disting_type <ALL> ]
413+
Current = '0'
414+
}
415+
Entry [ seaslog.disting_by_hour <ALL> ]
416+
Current = '0'
417+
}
418+
Entry [ seaslog.use_buffer <ALL> ]
419+
Current = '1'
420+
}
421+
Entry [ seaslog.trace_error <ALL> ]
422+
Current = '1'
423+
}
424+
Entry [ seaslog.trace_exception <ALL> ]
425+
Current = '1'
426+
}
427+
Entry [ seaslog.buffer_size <ALL> ]
428+
Current = '10'
429+
}
430+
Entry [ seaslog.level <ALL> ]
431+
Current = '0'
432+
}
433+
Entry [ seaslog.appender <ALL> ]
434+
Current = '1'
435+
}
436+
Entry [ seaslog.remote_host <ALL> ]
437+
Current = '127.0.0.1'
438+
}
439+
Entry [ seaslog.remote_port <ALL> ]
440+
Current = '514'
441+
}
442+
}
443+
444+
- Constants [16] {
445+
Constant [ string SEASLOG_VERSION ] { 1.6.9 }
446+
Constant [ string SEASLOG_AUTHOR ] { Chitao.Gao [ [email protected] ] }
447+
Constant [ string SEASLOG_ALL ] { all }
448+
Constant [ string SEASLOG_DEBUG ] { debug }
449+
Constant [ string SEASLOG_INFO ] { info }
450+
Constant [ string SEASLOG_NOTICE ] { notice }
451+
Constant [ string SEASLOG_WARNING ] { warning }
452+
Constant [ string SEASLOG_ERROR ] { error }
453+
Constant [ string SEASLOG_CRITICAL ] { critical }
454+
Constant [ string SEASLOG_ALERT ] { alert }
455+
Constant [ string SEASLOG_EMERGENCY ] { emergency }
456+
Constant [ integer SEASLOG_DETAIL_ORDER_ASC ] { 1 }
457+
Constant [ integer SEASLOG_DETAIL_ORDER_DESC ] { 2 }
458+
Constant [ integer SEASLOG_APPENDER_FILE ] { 1 }
459+
Constant [ integer SEASLOG_APPENDER_TCP ] { 2 }
460+
Constant [ integer SEASLOG_APPENDER_UDP ] { 3 }
461+
}
462+
463+
- Functions {
464+
Function [ <internal:SeasLog> function seaslog_get_version ] {
465+
}
466+
Function [ <internal:SeasLog> function seaslog_get_author ] {
467+
}
468+
}
469+
470+
- Classes [1] {
471+
Class [ <internal:SeasLog> class SeasLog ] {
472+
473+
- Constants [0] {
474+
}
475+
476+
- Static properties [0] {
477+
}
478+
479+
- Static methods [19] {
480+
Method [ <internal:SeasLog> static public method setBasePath ] {
481+
482+
- Parameters [1] {
483+
Parameter #0 [ <required> $base_path ]
484+
}
485+
}
486+
487+
Method [ <internal:SeasLog> static public method getBasePath ] {
488+
}
489+
490+
Method [ <internal:SeasLog> static public method setLogger ] {
491+
492+
- Parameters [1] {
493+
Parameter #0 [ <required> $logger ]
494+
}
495+
}
496+
497+
Method [ <internal:SeasLog> static public method getLastLogger ] {
498+
}
499+
500+
Method [ <internal:SeasLog> static public method setDatetimeFormat ] {
501+
502+
- Parameters [1] {
503+
Parameter #0 [ <required> $format ]
504+
}
505+
}
506+
507+
Method [ <internal:SeasLog> static public method getDatetimeFormat ] {
508+
}
509+
510+
Method [ <internal:SeasLog> static public method analyzerCount ] {
511+
512+
- Parameters [3] {
513+
Parameter #0 [ <required> $level ]
514+
Parameter #1 [ <optional> $log_path ]
515+
Parameter #2 [ <optional> $key_word ]
516+
}
517+
}
518+
519+
Method [ <internal:SeasLog> static public method analyzerDetail ] {
520+
521+
- Parameters [6] {
522+
Parameter #0 [ <required> $level ]
523+
Parameter #1 [ <optional> $log_path ]
524+
Parameter #2 [ <optional> $key_word ]
525+
Parameter #3 [ <optional> $start ]
526+
Parameter #4 [ <optional> $limit ]
527+
Parameter #5 [ <optional> $order ]
528+
}
529+
}
530+
531+
Method [ <internal:SeasLog> static public method getBuffer ] {
532+
}
533+
534+
Method [ <internal:SeasLog> static public method flushBuffer ] {
535+
}
536+
537+
Method [ <internal:SeasLog> static public method log ] {
538+
539+
- Parameters [4] {
540+
Parameter #0 [ <required> $level ]
541+
Parameter #1 [ <optional> $message ]
542+
Parameter #2 [ <optional> $content ]
543+
Parameter #3 [ <optional> $logger ]
544+
}
545+
}
546+
547+
Method [ <internal:SeasLog> static public method debug ] {
548+
549+
- Parameters [3] {
550+
Parameter #0 [ <required> $message ]
551+
Parameter #1 [ <optional> $content ]
552+
Parameter #2 [ <optional> $logger ]
553+
}
554+
}
555+
556+
Method [ <internal:SeasLog> static public method info ] {
557+
558+
- Parameters [3] {
559+
Parameter #0 [ <required> $message ]
560+
Parameter #1 [ <optional> $content ]
561+
Parameter #2 [ <optional> $logger ]
562+
}
563+
}
564+
565+
Method [ <internal:SeasLog> static public method notice ] {
566+
567+
- Parameters [3] {
568+
Parameter #0 [ <required> $message ]
569+
Parameter #1 [ <optional> $content ]
570+
Parameter #2 [ <optional> $logger ]
571+
}
572+
}
573+
574+
Method [ <internal:SeasLog> static public method warning ] {
575+
576+
- Parameters [3] {
577+
Parameter #0 [ <required> $message ]
578+
Parameter #1 [ <optional> $content ]
579+
Parameter #2 [ <optional> $logger ]
580+
}
581+
}
582+
583+
Method [ <internal:SeasLog> static public method error ] {
584+
585+
- Parameters [3] {
586+
Parameter #0 [ <required> $message ]
587+
Parameter #1 [ <optional> $content ]
588+
Parameter #2 [ <optional> $logger ]
589+
}
590+
}
591+
592+
Method [ <internal:SeasLog> static public method critical ] {
593+
594+
- Parameters [3] {
595+
Parameter #0 [ <required> $message ]
596+
Parameter #1 [ <optional> $content ]
597+
Parameter #2 [ <optional> $logger ]
598+
}
599+
}
600+
601+
Method [ <internal:SeasLog> static public method alert ] {
602+
603+
- Parameters [3] {
604+
Parameter #0 [ <required> $message ]
605+
Parameter #1 [ <optional> $content ]
606+
Parameter #2 [ <optional> $logger ]
607+
}
608+
}
609+
610+
Method [ <internal:SeasLog> static public method emergency ] {
611+
612+
- Parameters [3] {
613+
Parameter #0 [ <required> $message ]
614+
Parameter #1 [ <optional> $content ]
615+
Parameter #2 [ <optional> $logger ]
616+
}
617+
}
618+
}
619+
620+
- Properties [0] {
621+
}
622+
623+
- Methods [2] {
624+
Method [ <internal:SeasLog, ctor> public method __construct ] {
625+
}
626+
627+
Method [ <internal:SeasLog, dtor> public method __destruct ] {
628+
}
629+
}
630+
}
631+
}
632+
}
633+
634+
```
635+
636+
391637
### The useage of seaslog logger
392638
#### Get and set base path
393639
```php

0 commit comments

Comments
 (0)