Edit
by KoLa - 10 years ago (2014-11-22)
I need to create log files about the user activity.
| I want to have something that works like a database, but without a database, thus using files. |
- 1 Clarification request
1.
by Manuel Lemos - 10 years ago (2014-11-26) Reply
Most logging packages in the site store data in files.
What do you mean it works like a database but using files?
Do you mean you want also to search the logs like database queries but search on files?
Can you give more details of what you want to do?
Ask clarification
1 Recommendation
PHP Log File Database: Log messages to files or to a MySQL database
This class can log messages to files or to a MySQL database.
It can add to the log messages with different warning levels: error, warning, debug and information. Messages below a given warning level may be ignored.
The messages can be appended to a log file or stored in MySQL database table.
The log file name, message prefix, database connection details and the database table name are configurable parameters.
The class can retry writing to a log file a given number of times after a period if it fails for instance if the file is temporarily locked.
| by Manuel Lemos 26695 - 10 years ago (2014-12-02) Comment
There are many logging classes. This one can log messages to either files or a MySQL database. |