略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SeasLog::getBasePath

2024-05-04

SeasLog::getBasePath

(PECL seaslog >=1.0.0)

SeasLog::getBasePath获得 SeasLog 根目录

说明

public static Seaslog::getBasePath(): string

使用函数 SeasLog::getBasePath() 可以获得在 php.ini(seaslog.ini) 中设置的seaslog.default_basepath

如果使用函数 Seaslog::setBasePath(),将改变函数取值。

参数

此函数没有参数。

返回值

Return seaslog.default_basepath as string.

范例

示例 #1 SeasLog::getBasePath() example

<?php

var_dump
(SeasLog::getBasePath());

?>

以上例程的输出类似于:

string(12) "/var/log/www"
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/seaslog.getbasepath.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3