Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

yuki0410-dev/FuelPHP-Log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuel Log Package.

Overview

This Package provide Log class with multi log files.

Installing

Simply add log to your config.php always_loaded.packages config option.

Usage

fuel/app/config/log.php

<?php
return array(
	'default' => array(
		/**
		 * Logging Threshold.  Can be set to any of the following:
		 *
		 * Fuel::L_NONE
		 * Fuel::L_ERROR
		 * Fuel::L_WARNING
		 * Fuel::L_DEBUG
		 * Fuel::L_INFO
		 * Fuel::L_ALL
		 */
		'threshold'   => Fuel::L_WARNING,
		// log file dir
		'path'        => APPPATH.'logs/',
		// log file
		'file'        => date('Y').DS.date('m').DS.date('d').DS.'default.php',
		// log format
		'format'      => '%level_name% - %datetime% --> %message%'.PHP_EOL,
		// date format in log
		'date_format' => 'Y-m-d H:i:s',
		// allow line break
		'line_break'  => false,
	),
);

About

A Log package for FuelPHP

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages