Ignore:
Timestamp:
04/27/15 04:44:23 (9 years ago)
Author:
Maciej Komosinski
Message:

Improved argument variable names; changed implementation to use STL classes (vector, string)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/loggers/loggertostdout.cpp

    r375 r378  
    1010#endif
    1111
    12 void LoggerToStdout::handle(const char *o, const char *m, int w, const char *bl)
     12void LoggerToStdout::handle(const char *obj, const char *method, int level, const char *msg)
    1313{
    14         if (w < -1) w = -1; else if (w>3) w = 3;
     14        if (level < -1) level = -1; else if (level>3) level = 3;
    1515#ifdef SHP
    16         AppLog(LOG_FORMAT "\n",LOG_LEVEL[w+1],o,m,bl);
     16        AppLog(LOG_FORMAT "\n",LOG_LEVEL[level+1],obj,method,msg);
    1717#else
    1818        if (file)
    19                 file->printf(LOG_FORMAT "\n", LOG_LEVEL[w + 1], o, m, bl);
     19                file->printf(LOG_FORMAT "\n", LOG_LEVEL[level + 1], obj, method, msg);
    2020        else
    21                 printf(LOG_FORMAT "\n", LOG_LEVEL[w + 1], o, m, bl);
     21                printf(LOG_FORMAT "\n", LOG_LEVEL[level + 1], obj, method, msg);
    2222#endif
    2323}
Note: See TracChangeset for help on using the changeset viewer.