added log file constants and toggle constants for file logging
added hook log-menu