Advertisement
Guest User

Untitled

a guest
Jun 15th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include <pantheios/pantheios.hpp>
  2.  
  3.  
  4. extern "C" const char PANTHEIOS_FE_PROCESS_IDENTITY[] = "MyApplication";
  5.  
  6.  
  7.  
  8. namespace
  9.  
  10. {
  11.  
  12.     static int s_log_level = pantheios::informational;
  13.  
  14. }
  15.  
  16.  
  17.  
  18. PANTHEIOS_CALL(int) pantheios_fe_isSeverityLogged(void *token,
  19.  
  20.     int severity, int backEndId)
  21.  
  22. {
  23.  
  24.     return severity <= s_log_level;
  25.  
  26. }
  27.  
  28.  
  29.  
  30. int main(int argc, char* argv[])
  31.  
  32. {
  33.  
  34.         pantheios::log(pantheios::debug, "Debug");
  35.  
  36.         pantheios::log(pantheios::informational, "Info");
  37.  
  38.  
  39.  
  40.         return 0;
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement