Ever wondered to have a customised log function to get array or text as input and add it to file with the exact date and time? guess what? here is the function, you can add it to your config file( or in WordPress add it to functions.php) and call it anywhere in your code to log