Added Syslog Task and renamed FileLogger Task to File.
This commit is contained in:
parent
a405aea503
commit
4da46438cc
2 changed files with 21 additions and 2 deletions
|
|
@ -7,11 +7,11 @@ from linspector.core.task import Task
|
|||
|
||||
|
||||
def create(configuration, environment, log):
|
||||
return FileLoggerTask(configuration, environment, log)
|
||||
return FileTask(configuration, environment, log)
|
||||
|
||||
|
||||
# TODO: check for all required configuration options and set defaults if needed.
|
||||
class FileLoggerTask(Task):
|
||||
class FileTask(Task):
|
||||
|
||||
def __init__(self, configuration, environment, log):
|
||||
super().__init__(configuration, environment, log)
|
||||
19
linspector/tasks/syslog.py
Normal file
19
linspector/tasks/syslog.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"""
|
||||
This file is part of Linspector (https://linspector.org/)
|
||||
Copyright (c) 2023 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
|
||||
See LICENSE (MIT license)
|
||||
"""
|
||||
from linspector.core.task import Task
|
||||
|
||||
|
||||
def create(configuration, environment, log):
|
||||
return SyslogTask(configuration, environment, log)
|
||||
|
||||
|
||||
# TODO: check for all required configuration options and set defaults if needed.
|
||||
class SyslogTask(Task):
|
||||
def __init__(self, configuration, environment, log):
|
||||
super().__init__(configuration, environment, log)
|
||||
self.__configuration = configuration
|
||||
self.__environment = environment
|
||||
self.__log = log
|
||||
Loading…
Add table
Add a link
Reference in a new issue