Error_Log::get_log_size_mb()
Summary
Get log file size in MB
Return
(float|int)
Source
File: src/BigCommerce/Logging/Error_Log.php
public function get_log_size_mb() { if ( ! file_exists( $this->log_path ) ) { return 0; } /** * Get log size in bytes */ $file_size = filesize( $this->log_path ); /** * Return the size of log file in MB */ return round( $file_size / 1024 / 1024, 1 ); }