WIP: Integrate with RobotStreamer #5
|
@ -11,20 +11,21 @@ logger = logging.getLogger(__name__)
|
||||||
# By default the install() function installs a handler on the root logger,
|
# By default the install() function installs a handler on the root logger,
|
||||||
# this means that log messages from your code and log messages from the
|
# this means that log messages from your code and log messages from the
|
||||||
# libraries that you use will all show up on the terminal.
|
# libraries that you use will all show up on the terminal.
|
||||||
coloredlogs.install(level='DEBUG')
|
#coloredlogs.install(level='DEBUG')
|
||||||
|
|
||||||
|
|
||||||
# If you don't want to see log messages from libraries, you can pass a
|
# If you don't want to see log messages from libraries, you can pass a
|
||||||
# specific logger object to the install() function. In this case only log
|
# specific logger object to the install() function. In this case only log
|
||||||
# messages originating from that logger will show up on the terminal.
|
# messages originating from that logger will show up on the terminal.
|
||||||
coloredlogs.install(level='DEBUG', logger=logger)
|
coloredlogs.install(level='INFO', logger=logger)
|
||||||
|
|
||||||
logger.success('Program Started')
|
logger.info('Lewis Companion Software Started.')
|
||||||
|
logger.success('Ready to robot!')
|
||||||
|
|
||||||
# Junk~
|
# Junk~
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
logger.info('Nothing to do.')
|
logger.debug('Nothing to do.')
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue