Skip to content
Snippets Groups Projects
Commit 706ef687 authored by jkerdreu's avatar jkerdreu
Browse files

New logger

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2082 b32b6428-25c9-4566-ad07-03861ab6144f
parent 8fc13186
Branches
No related tags found
No related merge requests found
from xaal.lib import Device,Engine,tools
import sys
import logging
logger = tools.get_logger("lamp.py","DEBUG")
logger = logging.getLogger("lamp.py")
def main(addr):
if addr == None:
......
from xaal.lib import Device,Engine,tools
import sys
import logging
logger = tools.get_logger("lamp.py","DEBUG")
logger = logging.getLogger("lamp.py")
def main(addr):
if addr == None:
......
......@@ -6,9 +6,11 @@ import select
import sys
import tty
import termios
import logging
logger = tools.get_logger("temperature.py","WARNING")
logger = logging.getLogger("temperature.py")
def keyboard_read():
if select.select([sys.stdin], [], [], 0) == ([sys.stdin], [], []):
......@@ -19,7 +21,6 @@ def display_value(value):
sys.stdout.write('\r Temp : %0.1f' % value)
sys.stdout.flush()
def main(addr):
if addr == None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment