added NOneLogger, adjust blacklist default file and handling

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1221 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-01-29 19:02:06 +00:00
parent d78d96dd0e
commit 8a474914f3

View file

@ -154,11 +154,12 @@ class Configuration (dict):
'separator': ';',
}
self['blacklist'] = {
"filename": "~/.blacklist",
"filename": "~/.linkchecker_blacklist",
}
self['xml'] = {
"filename": "linkchecker-out.xml",
}
self['none'] = {}
self['log'] = self.newLogger('text')
self["quiet"] = False
self["warningregex"] = None
@ -408,8 +409,8 @@ class Configuration (dict):
filelist = cfgparser.get(section, "fileoutput").split(",")
for arg in filelist:
arg = arg.strip()
# no file output for the blacklist Logger
if Loggers.has_key(arg) and arg != "blacklist":
# no file output for the blacklist and none Logger
if Loggers.has_key(arg) and arg not in ["blacklist", "none"]:
self['fileoutput'].append(
self.newLogger(arg, {'fileoutput':1}))
except ConfigParser.Error, msg: debug(NIGHTMARE, msg)