Exemplo n.º 1
0
def log_warning(text):
    """
    Prints a WARNING message to stdout.

    :param text:
    """
    utils.log_write_entry(sys.stdout, "WARNING", text)
Exemplo n.º 2
0
def log_info(text):
    """
    Prints a INFO message to stdout.

    :param text:
    """
    utils.log_write_entry(sys.stdout, "INFO", text)
Exemplo n.º 3
0
def log_warning(text):
    """
    Prints a WARNING message to stdout.

    :param text:
    """
    utils.log_write_entry(sys.stdout, "WARNING", text)
Exemplo n.º 4
0
def log_info(text):
    """
    Prints a INFO message to stdout.

    :param text:
    """
    utils.log_write_entry(sys.stdout, "INFO", text)
Exemplo n.º 5
0
def log_error(text, exception=None):
    """
    Prints a ERROR message and exception to stderr.

    :param text:
    :param exception:
    """
    utils.log_write_entry(sys.stderr, "ERROR", text, exception)
    # in case we send to somewhere else also send it to the standard error output (console)
    if sys.stderr is not sys.__stderr__:
        utils.log_write_entry(sys.__stderr__, "ERROR", text, exception)
Exemplo n.º 6
0
def log_error(text, exception=None):
    """
    Prints a ERROR message and exception to stderr.

    :param text:
    :param exception:
    """
    utils.log_write_entry(sys.stderr, "ERROR", text, exception)
    # in case we send to somewhere else also send it to the standard error output (console)
    if sys.stderr is not sys.__stderr__:
        utils.log_write_entry(sys.__stderr__, "ERROR", text, exception)