-
Notifications
You must be signed in to change notification settings - Fork 19
Class: Logs
Saqib Razzaq edited this page Mar 17, 2019
·
1 revision
Logs is a tiny class that makes it easy for developers to write helpful logs for background processes.
Create initial log data
Boolean
$logs = new Logs('file.log');
$logs->initialize();
Check if file used to init already exists
Boolean
$logs->exists();
Write data to log file
Data to write on new line
Prints data before writing
Boolean
$logs->write('Log has been started', true);
Reads data from specified file
Data fetched from file
$logs->read();