Changeset 210

Show
Ignore:
Timestamp:
01/16/08 13:33:04 (7 months ago)
Author:
klaus
Message:

- fixed libh324m log level as stated in the "h324m debug level" usage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libh324m/src/FileLogger.cpp

    r208 r210  
    4343void FileLogger::SetMuxByte(BYTE b) 
    4444{ 
    45         if (level>5) 
     45        if (level>=5) 
    4646        { 
    4747                //New line 
     
    7575void FileLogger::SetMuxInfo(const char*info,...) 
    7676{ 
    77         if (level>5) 
     77        if (level>=5) 
    7878        { 
    7979                va_list ap; 
     
    114114void FileLogger::SetDemuxByte(BYTE b) 
    115115{ 
    116         if (level>5) 
     116        if (level>=5) 
    117117        { 
    118118                //New line 
     
    162162void FileLogger::SetDemuxInfo(int offset,const char*info,...) 
    163163{ 
    164         if (level>5) 
     164        if (level>=5) 
    165165        { 
    166166                va_list ap; 
     
    182182void FileLogger::DumpMedia(BYTE *data,DWORD len) 
    183183{ 
    184         if (level>5) 
     184        if (level>=5) 
    185185        { 
    186186                char name[256]; 
     
    197197void FileLogger::DumpInput(BYTE *data,DWORD len) 
    198198{ 
    199         if (level>5) 
     199        if (level>=5) 
    200200        { 
    201201                char name[256]; 
     
    212212void FileLogger::DumpOutput(BYTE *data,DWORD len) 
    213213{ 
    214         if (level>5) 
     214        if (level>=5) 
    215215        { 
    216216                char name[256]; 
  • libh324m/src/log.cpp

    r198 r210  
    1212void Logger::Debug(const char* msg,...) 
    1313{ 
    14         if(level>4) 
     14        if(level>=4) 
    1515        { 
    1616                va_list ap; 
     
    2626void Logger::Warning(const char* msg,...) 
    2727{ 
    28         if(level>3) 
     28        if(level>=3) 
    2929        { 
    3030                va_list ap; 
     
    4040void Logger::Log(const char* msg,...) 
    4141{ 
    42         if(level>2) 
     42        if(level>=2) 
    4343        { 
    4444                va_list ap; 
     
    5454void Logger::Error(const char* msg,...) 
    5555{ 
    56         if(level>1) 
     56        if(level>=1) 
    5757        { 
    5858                va_list ap; 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software