Subversion Repositories Projects

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef FLIGHTLOG_H
#define FLIGHTLOG_H
#include "Kopter.h"
#include "../typedefs.h"
#include <string>

#define USE_COLOR
#define ERROR_COLOR         COLOR_FG_DARKRED
#define WARNING_COLOR       COLOR_BG_LIGHTYELLOW
#define INFO_COLOR          COLOR_NORMAL

/**
 * The FlightLog saves a human-readable log, so that we can see, what happened.
 */


class FlightLog {
    private:
        //TODO: use a struct that contains timestamp and encoded data?
        static char * log_str;

    public:
        static void info(char * dat);
        static void warning(char * dat);
        static void error(char * dat);
};

#endif