protected function _consoleContext() { $user = isset($_SERVER['USER']) ? $_SERVER['USER'] : 'unknown'; return array('Environment' => 'Console', 'Host Name' => gethostname(), 'User' => $user, 'Script' => $_SERVER['SCRIPT_FILENAME'], 'Working Dir' => getcwd(), 'Umask' => sprintf("%04o", umask())); }