Commit 2ddfff19 authored by Alén Arias Vázquez's avatar Alén Arias Vázquez 😎

added miliseconds

parent 8192ba83
......@@ -6,7 +6,7 @@ import argparse
class CPX400DP(object):
def __init__(self, name='CPX400DP', devname='/dev/tty_CPX', baudrate=115200, log_level=logging.INFO):
logging.basicConfig(format='%(asctime)s-%(name)s-%(levelname)-s %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=log_level)
logging.basicConfig(format='%(asctime)s.%(msecs)03d %(name)s-%(levelname)-s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=log_level)
self.name = name
self.log = logging.getLogger(self.name)
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment