You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
487 B
23 lines
487 B
2 years ago
|
"""! @file log.py
|
||
|
@brief File with printing functions
|
||
|
@author xlanro00
|
||
|
"""
|
||
|
|
||
|
import sys
|
||
|
|
||
|
def print_message(*args, **kwargs):
|
||
|
'''Print given message to stderr.
|
||
|
:param message: message to be printed
|
||
|
'''
|
||
|
|
||
|
print("APP:", *args, file=sys.stderr, **kwargs)
|
||
|
|
||
|
|
||
|
def error_exit(error_message):
|
||
|
'''Print given error message and exit the application.
|
||
|
:param message: error message to be printed
|
||
|
'''
|
||
|
|
||
|
print("ERROR:" + error_message, file=sys.stderr)
|
||
|
exit(1)
|