WC_Log_Handler_File::__construct( int $log_size_limit = null )

Constructor for the logger.


Description Description


Parameters Parameters

$log_size_limit

(Optional) Size limit for log files. Default 5mb.

Default value: null


Top ↑

Source Source

File: includes/log-handlers/class-wc-log-handler-file.php

	public function __construct( $log_size_limit = null ) {
		if ( null === $log_size_limit ) {
			$log_size_limit = 5 * 1024 * 1024;
		}

		$this->log_size_limit = apply_filters( 'woocommerce_log_file_size_limit', $log_size_limit );

		add_action( 'plugins_loaded', array( $this, 'write_cached_logs' ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.