Пример #1
0
 virtual void setFileSize( int value, rho::apiGenerator::CMethodResult& oResult)
 {
     if (value >= 0)
     {
         LOGCONF().setMaxLogFileSize(value);
     }
     else
     {
         oResult.setArgError("Log: Invalid file size value");
     }
 }
Пример #2
0
 virtual void setMemoryPeriod( int value, rho::apiGenerator::CMethodResult& oResult)
 {
     if (value >= 0)
     {
         LOGCONF().setCollectMemoryInfoInterval(value);
     }
     else
     {
         oResult.setArgError("Log: Invalid memory period value");
     }
 }
Пример #3
0
 virtual void setLevel( int value, rho::apiGenerator::CMethodResult& oResult)
 {
     if ( L_TRACE <= value && value <= L_FATAL )
     {
         LOGCONF().setMinSeverity(value);
     }
     else
     {
         oResult.setArgError("Log: Invalid severity level");
     }
 }
Пример #4
0
 virtual void setFilePath( const rho::String& value, rho::apiGenerator::CMethodResult& oResult)
 {
     if (value.size() > 0)
     {
         LOGCONF().setLogFilePath(value);
     }
     else
     {
         oResult.setArgError("Log: Empty file path");
     }
 }