-
pecl install seaslog
of the radical search configuration.
configuration for php seaslog module extension = = log/seaslog-test ;default log root = default ; default logger directory = 1 ; Whether to divide files by type 1 Yes 0 No (default) = 1 ; Whether to divide a file every hour 1 Yes 0 No (default) = 1 ; Whether buffer is enabled 1 Yes 0 No (default) = 100 ; The number of buffers in the buffer is 0 by default (no buffer size) = 0 ; Log level: Default 0 (all logs).
1 Enable file classification by type, that is, log file differentiation of info warn erro
1 Turn on the division of one file per hour.
1 Enable the buffer. It is off by default. When this option is enabled, logs are stored in memory and written to files once at the end of the request (or when an abnormal exit).
100 sets the buffer amount to 100The default value is 0, that is, there is no limit on the number of buffers. When the buffer size is greater than 0, the buffer size reaches this value, and the file is written once.
3 The log level of the record. The default value is 0, that is, all logs are recorded. When the level is 1, the rent is charged with debug or above (including debug), and so on. When the level is greater than 8, all logs are not recorded.
What are the default constants.
Following the PSR-3 standard, Seaslog divides logs into 8 levels.
seaslog_debug "debug"
seaslog_info "info"
seaslog_notice "notice"
seaslog_warning "warning"
seaslog_error "error"
seaslog_critical "critical"
seaslog_alert "alert"
seaslog_emergency "emergency"
-
What Seaslog currently offers:
Log logging in PHP projects is easy and standardized
Configurable default log directory with module vendors.
Specify the log directory and obtain the current configuration.
Seaslog's Goals.
Convenient and standardized log recording.
Efficient analysis of massive logs.
Configurable, multi-channel hood log warning.
Seaslog compilation and installation.
cd seaslog/
phpize
configure --with-php-config=php-config
makemake install
configuration for php seaslog module
extension=
log/seaslog-test
defaultdemo:
var_dump(seaslog_type_info);
var_dump(seaslog_type_warn);
var_dump(seaslog_type_erro);
var_dump(seaslog_get_basepath())
var_dump(seaslog_get_lastlogger())
var_dump(seaslog_get_basepath())
var_dump(seaslog('test info'))
var_dump(seaslog('test warning', seaslog_type_warn));
var_dump(seaslog('test error', seaslog_type_erro));
var_dump(seaslog_set_basepath('First compass log base test'))
var_dump(seaslog('test info 2'))
var_dump(seaslog('test warning 2', seaslog_type_warn));
var_dump(seaslog('test error 2', seaslog_type_erro));
var_dump(seaslog_get_basepath())
var_dump(seaslog_get_lastlogger())
var_dump(seaslog_get_basepath())
var_dump(seaslog('test error 3', seaslog_type_erro, 'test/bb'))
echo "";
-
You can search for php ** specifications, the Chinese version can be sg** to see, the international version can search for php psr-1 or -2 such specifications, the latter is the English version, you can also search on github**.
Seeking. Here, it refers not only to the mysteries and laws of nature, society and the movement (activities) of man himself, but also to the scientific attitude and scientific spirit of pursuing truth. >>>More
The "yes" in seeking truth from facts has the triple connotation of science, truth, and reason, and seeking truth from facts. The "yes" that we explore, study, and pursue is, first, what is the original appearance of objective things and what is the truth of facts. This is the realm of science. >>>More
Baylor University Application Requirements: (1) Bachelor's degree applicants must have graduated from high school with a TOEFL score of 540 on the paper-based test and 207 on the computer-based test. GPA requires B-. >>>More
Hello, what are the VAT application requirements in France? >>>More
It is to choose the subjects that you like or that you must study.