Skip to content

ufukozdemir1990/codeigniter-custom-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Codeigniter Custom Logs

Install

$this->load->library('Logs');

Example

Logs::view("Products page has been viewed");
Logs::insert("New product added");
Logs::update("Product updated");
Logs::delete("Product deleted");
Logs::other("Custom text");

Note: Saved records are stored in the logs folder as year, month and day.

Logs
├── 2019
│   ├── 06
│   │   ├── 16.06.2019.json
│   │   ├── 23.06.2019.json
│   ├── 10
│   │   ├── 03.10.2019.json
│   │   ├── 11.10.2019.json