src/ArkLogger.php
public function getCurrentLogFilePath()
    {
        $rotateTimeMark = "";
        if ($this->rotateTimeFormat !== null) {
            $rotateTimeMark .= "-" . date($this->rotateTimeFormat);
        }

        if (is_callable($this->prefix)) {
            $prefix = call_user_func_array($this->prefix, []);
            // not check prefix here, let user ensure this correctness
        } else {
            $prefix = $this->prefix;
        }
        return $this->targetLogDir . '/log' . (empty($this->prefix) ? '' : "-" . $prefix) . $rotateTimeMark . '.log';
    }
public function getCurrentLogFilePath()
    {
        $rotateTimeMark = "";
        if ($this->rotateTimeFormat !== null) {
            $rotateTimeMark .= "-" . date($this->rotateTimeFormat);
        }

        if (is_callable($this->prefix)) {
            $prefix = call_user_func_array($this->prefix, []);
            // not check prefix here, let user ensure this correctness
        } else {
            $prefix = $this->prefix;
        }
        return $this->targetLogDir . '/log' . (empty($this->prefix) ? '' : "-" . $prefix) . $rotateTimeMark . '.log';
    }
public function getCurrentLogFilePath ( ) { $ rotateTimeMark = "" ; if ( $ this -> rotateTimeFormat !== null ) { $ rotateTimeMark .= "-" . date ( $ this -> rotateTimeFormat ) ; } if ( is_callable ( $ this -> prefix ) ) { $ prefix = call_user_func_array ( $ this -> prefix , [ ] ) ; // not check prefix here, let user ensure this correctness } else { $ prefix = $ this -> prefix ; } return $ this -> targetLogDir . '/log' . ( empty ( $ this -> prefix ) ? '' : "-" . $ prefix ) . $ rotateTimeMark . '.log' ; }
Sometime you may need to know where the log file is
@return string
@since 2.2
Sometime you may need to know where the log file is