log level changed

This commit is contained in:
Volkan Şahin 2016-04-25 16:36:54 +03:00
parent 9dfbbcf5fc
commit 9ffd543cfb
7 changed files with 1 additions and 55 deletions

View File

@ -10,7 +10,7 @@ keys=file
[handler_file]
class=logging.FileHandler
level=INFO
level=DEBUG
formatter=default
args=("/var/log/ahenk.log", "w")

View File

@ -1,24 +0,0 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
from base.plugin.AbstractCommand import AbstractCommand
class MySamplePlugin(AbstractCommand):
"""docstring for MySamplePlugin"""
def __init__(self, task):
super(MySamplePlugin, self).__init__()
self.task = task
def handle_task(self):
print("This is command 1 ")
print("parameter map="+self.task.parameter_map)
def handle_task(task,context):
# Do what ever you want here
# You can create command class but it is not necessary
# You can use directly this method.
context.put('my_data_name','my data')
myPlugin = MySamplePlugin(task)
myPlugin.handle_task()

View File

@ -1,8 +0,0 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
def info():
return None

View File

@ -1,9 +0,0 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
def handle_policy(profile_data,context):
context.put('data','dataa')
context.put('content_type','type')
print("This is policy file - plugin 1")

View File

@ -1,7 +0,0 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
def handle_safe_mode(username,context):
pass

View File

@ -1,6 +0,0 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
def run(val):
print("oo yeah plugin2 " + str(val))