add option to log to console in nodaemon mode