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.

33 lines
628 B

  1. /**
  2. * @file MainExample.cpp
  3. * @brief example using logger
  4. * @author hendrik schutter
  5. * @date 04.09.2020
  6. */
  7. #include <stdio.h>
  8. #include "logger.h"
  9. using namespace std;
  10. /**
  11. * \brief application entry point
  12. * \param void
  13. * \return int
  14. */
  15. int main(void)
  16. {
  17. cout << "Hello World!\n";
  18. Logger::logThis()->info("Alle Systeme laufen!"); //demo
  19. usleep(1465);
  20. Logger::logThis()->warning("Alle Systeme laufen!"); //demo
  21. usleep(51654);
  22. Logger::logThis()->error("Alle Systeme laufen!"); //demo
  23. cout << "bye!\n";
  24. return 0;
  25. }