Class CI_Log - echiong/testRepo GitHub Wiki

##Class CI_Log

Logging Class

Package: [[CodeIgniter<a href="Package CodeIgniter.Libraries.md">Libraries]]
Category: Logging
Author: ExpressionEngine Dev Team
Link: http://codeigniter.com/user_guide/general/errors.html
Located at system/libraries/Log.php

##Methods summary


public __construct ( )

Constructor


public boolean write_log ( string $level = 'error', string $msg, boolean $php_error = FALSE )

Write Log File

Generally this function will be called using the global log_message() function

Parameters

$level string
the error level

$msg string
the error message

$php_error boolean
whether the error is a native PHP error

Returns boolean

<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="_log_path" id="$_log_path">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$_log_path

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_threshold" id="$_threshold">
	<td class="attributes"><code>
		protected  
		integer
	</code></td>

	<td class="name">

$_threshold

1
#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_date_fmt" id="$_date_fmt">
	<td class="attributes"><code>
		protected  
		string
	</code></td>

	<td class="name">

$_date_fmt

'Y-m-d H:i:s'
#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_enabled" id="$_enabled">
	<td class="attributes"><code>
		protected  
		boolean
	</code></td>

	<td class="name">

$_enabled

TRUE
#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_levels" id="$_levels">
	<td class="attributes"><code>
		protected  
		array
	</code></td>

	<td class="name">

$_levels

array('ERROR' => '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4')
#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
</table>
⚠️ **GitHub.com Fallback** ⚠️