~aleteoryx/muditaos

ref: 2695cc830472190ce1401869bb67f5506a3e17e6 muditaos/module-utils/test/test_log.cpp -rw-r--r-- 669 bytes
2695cc83 — piotrleniec-mudita [DW-31] Add commit message format checking on CI (#1201) 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

/*
 * unittest_log.cpp
 *
 *  Created on: 29 kwi 2019
 *      Author: robert
 */

#include "log/log.hpp"

#include <iostream>
#include <string>

#include "test_log2.h"

using namespace std;

int main()
{

    cout << "RUNNING UNIT TEST FOR LOG" << endl;

    LOG_TRACE("This should be blue");
    LOG_DEBUG("This should be navy blue");
    LOG_INFO("This should be green");
    LOG_WARN("This should be yellow");
    LOG_ERROR("This should be red");
    LOG_FATAL("This should be purple");

    log_test_function();

    return 0;
}