Added syslog plugin stub but just as an idea. (0.21.6)
This commit is contained in:
parent
5ac1bca11a
commit
afc2f23308
1 changed files with 25 additions and 0 deletions
25
linspector/plugins/syslog.py
Normal file
25
linspector/plugins/syslog.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
This file is part of Linspector (https://linspector.org/)
|
||||
Copyright (c) 2023 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
|
||||
See LICENSE (MIT license).
|
||||
"""
|
||||
# TODO: Think about this idea it little bit more. Maybe Syslog support should not become a plugin
|
||||
# but should better be implemented in the core.
|
||||
from linspector.plugin import Plugin
|
||||
|
||||
|
||||
def create(configuration, environment, linspector, log):
|
||||
return SyslogPlugin(configuration, environment, linspector, log)
|
||||
|
||||
|
||||
# TODO: check for all required configuration options and set defaults if needed.
|
||||
class SyslogPlugin(Plugin):
|
||||
def __init__(self, configuration, environment, linspector, log):
|
||||
super().__init__(configuration, environment, linspector, log)
|
||||
self.__configuration = configuration
|
||||
self.__environment = environment
|
||||
self.__linspector = linspector
|
||||
self.__log = log
|
||||
|
||||
def run(self):
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue