src/Jackiedo/LogReader/LogReader.php
public function getLogFilenameList($filename = null)
    {
        $data = [];

        if (empty($filename)) {
            $filename = '*.*';
        }

        $files = $this->getLogFileList($filename);

        if (is_array($files)) {
            foreach ($files as $file) {
                $basename = pathinfo($file, PATHINFO_BASENAME);
                $data[$basename] = $file;
            }
        }

        return $data;
    }
public function getLogFilenameList($filename = null)
    {
        $data = [];

        if (empty($filename)) {
            $filename = '*.*';
        }

        $files = $this->getLogFileList($filename);

        if (is_array($files)) {
            foreach ($files as $file) {
                $basename = pathinfo($file, PATHINFO_BASENAME);
                $data[$basename] = $file;
            }
        }

        return $data;
    }
public function getLogFilenameList ( $ filename = null ) { $ data = [ ] ; if ( empty ( $ filename ) ) { $ filename = '*.*' ; } $ files = $ this -> getLogFileList ( $ filename ) ; if ( is_array ( $ files ) ) { foreach ( $ files as $ file ) { $ basename = pathinfo ( $ file , PATHINFO_BASENAME ) ; $ data [ $ basename ] = $ file ; } } return $ data ; }
Returns an array of log filenames.

@param  null|string  $filename

@return array
Returns an array of log filenames .