Revision a3732b39
Added by Marc Dequènes over 14 years ago
- ID a3732b39dd1dc67ddc3fde2334630279c36a0a2d
bin/postman | ||
---|---|---|
# setup logs
|
||
unless @config.log.nil?
|
||
logger.output_level(@config.log.console_level) unless @config.log.console_level.nil?
|
||
logger.log_to_file(@config.log.file) unless @config.log.file.nil?
|
||
unless @config.log.path.nil?
|
||
if File.directory? @config.log.path
|
||
logger.log_to_file(File.join(@config.log.path, "ch_#{self.class.human_name}.log"))
|
||
else
|
||
logger.fatal "Log path does not exist or is not a directory, exiting"
|
||
exit 1
|
||
end
|
||
end
|
||
end
|
||
|
||
@imap = IMAP.new(@config.imap, @config.imap.min_check_interval)
|
Also available in: Unified diff
[evol] separate log for each bot (closes #34)