super3 / IRC-Bot

A very little basic IRCBot that will get improved over the next time.
http://www.wildphp.com
102 stars 47 forks source link

[Solved] Logging to a directory outside of the PHP IRC-Bot dir? #44

Closed oliveratgithub closed 9 years ago

oliveratgithub commented 9 years ago

Hi there, What is the best and easiest way with the current build to change the logging to a directory outside the PHP IRC-Bot's ROOT_DIR? Digging into the Bot.php file I thought it should work by simply changing the "log_file"-parameter in the configuration file to a path rather than just a filename... but seems this doesn't do the trick.

Any solutions appreciated :)

oliveratgithub commented 9 years ago

Nevermind, it works just as I described. You can put a valid path with file-name into the configuration file.

But one question: isn't there an issue with the naming of the Configuration items in the config.php file compared to how it is being handled in the Bot.php? i.e. "log_file" vs. "logFile" and "max_reconnects" vs. "maxReconnects"...