Logging something without date/time
Hello,
I use log_to_file() function like everyone to log something to log file. But when you take a look at to my log file it really looks complicated because of those date/time values. Is it possible to log something without date and time of the action? |
Re: Logging something without date/time
You can manually write to a file. Or, you can just learn to ignore the timestamp.
|
Re: Logging something without date/time
Code:
|
Re: Logging something without date/time
Rather than convert log_to_file, it would be better do use a custom function, like cache the file path in a global var so you only need to retrieve it once, and also, when you use a specific file, that file could also be plugin specific, so there is no need to add again the plugin name in the log.
PHP Code:
Then you can do : LogToFile("%s has killed %s", szKillerName, szVictimName) |
| All times are GMT -4. The time now is 07:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.