This library is designed to create and run state graphs. It supports hierarchical states and parallel states execution.

StateMachineLib/Logger.h

Committer:
martin13
Date:
2021-02-02
Revision:
4:22b4462fcb26
Parent:
0:f4fdca2c4c67

File content as of revision 4:22b4462fcb26:

////////////////////////////////////////////////////////////////////////////////
// Copyright Rottor SAS 2017
// All rigths reserved.
//
// File Name : MetaData.h
// Authors : Martin Matignon
//
// If you find any bug or if you have any question please contact
// Martin Matignon <martin.matignon@rottor.fr>
// Nicolas Forestier <nicolas.forestier@rottor.fr>
//
////////////////////////////////////////////////////////////////////////////////

#ifndef __LOGGER_H__
#define __LOGGER_H__

#include "mbed.h"

class Logger{

public:

    enum LoggerLevel_t{
        DEBUG = 0x00,
        INFO        ,
        WARNING     ,
        ERROR
    };
    
    static int level;
    
    Logger(int _level);

    static void debug(const char* format, ...);

    static void info(const char* format, ...);
    
    static void warn(const char* format, ...);
    
    static void err(const char* format, ...);
};

#endif /* #ifndef __LOGGER_H__*/