Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

README.md

error log check OpenCart

Simple module which checks the error file (error.txt) when its size exceeds 1MB and notify you.

View vqmod file https://github.com/rpenchev/error_log_check_opencart/blob/master/error_log_check_and_alert.xml

or

add thist code in /admin/view/template/common/header.tpl after all code

	<style type="text/css">
		#content {
		padding-top: 20px!important;
		}
		.warning {
		position: absolute!important;
		margin-top: 4px;
		margin-left: 30px;
		}
	</style>
		
<?php

$filename = $file = DIR_LOGS . $this->config->get('config_error_filename');

if (filesize($filename) > 1000000) {
	echo '<div class="warning" >';
	echo $filename . ': ' . filesize($filename) ;
	echo ' bytes';
	echo '<a href="';
	echo $this->data['clear'] = $this->url->link('tool/error_log/clear', 'token=' . $this->session->data['token'], 'SSL');
	echo '" > CLEAR</a>';
	echo '</div>';
} else {
}

?>

About

Simple module which checks the error file (error.txt) when its size exceeds 1MB and notify you.

Resources

Releases

No releases published
You can’t perform that action at this time.