FileLog::chunkSize() FileLog::chunkSize() FileLog::chunkSize(int $chunkSize = 0) | int | Get or set the default chunk size used when reading from logs and not overridden by method argument | |
FileLog::delete() FileLog::delete() FileLog::delete() | bool | Delete the log file | |
FileLog::filename() FileLog::filename() FileLog::filename() | string | Get file basename | |
FileLog::find() FileLog::find() FileLog::find(int $limit = 100, int $pageNum = 1, array $options = []) | int array | Return lines from the end of the log file, with various options | |
FileLog::get() FileLog::get() FileLog::get(int $chunkSize = 0, int $chunkNum = 1) | array | Get lines from the end of a file based on chunk size (deprecated) | |
FileLog::getDate() FileLog::getDate(int $dateFrom) FileLog::getDate(int $dateFrom, int $dateTo = 0, int $pageNum = 1, int $limit = 100) | array | Get log lines that lie within a date range | |
FileLog::getMaxLineLength() FileLog::getMaxLineLength() FileLog::getMaxLineLength() | (nothing) | | |
FileLog::getTotalLines() FileLog::getTotalLines() FileLog::getTotalLines() | int | Get total number of lines in the log file | |
FileLog::mtime() FileLog::mtime() FileLog::mtime() | int false | Get file modification time | |
FileLog::path() FileLog::path() FileLog::path() | string | Get path where the log is stored (with trailing slash) | |
FileLog::pathname() FileLog::pathname() FileLog::pathname() | string bool | Get file pathname | |
FileLog::prune() FileLog::prune($bytes) FileLog::prune($bytes) | bool int | Prune to number of bytes | |
FileLog::pruneBytes() FileLog::pruneBytes(int $bytes) FileLog::pruneBytes(int $bytes) | int bool | Prune log file to specified number of bytes (from the end) | |
FileLog::pruneDate() FileLog::pruneDate($oldestDate) FileLog::pruneDate($oldestDate) | int | Prune log file to contain only entries newer than $oldestDate | |
FileLog::save() FileLog::save(string $str) FileLog::save(string $str, array $options = []) | bool | Save the given log entry string | |
FileLog::setDelimeter() FileLog::setDelimeter($c) FileLog::setDelimeter($c) | (nothing) | | |
FileLog::setDelimiter() FileLog::setDelimiter($c) FileLog::setDelimiter($c) | (nothing) | | |
FileLog::setFileExtension() FileLog::setFileExtension($ext) FileLog::setFileExtension($ext) | (nothing) | | |
FileLog::setMaxLineLength() FileLog::setMaxLineLength($c) FileLog::setMaxLineLength($c) | (nothing) | | |
FileLog::size() FileLog::size() FileLog::size() | int false | Get filesize | |
FileLog::wired() FileLog::wired() FileLog::wired() | (nothing) | Wired to API | |