virtual void setFileSize( int value, rho::apiGenerator::CMethodResult& oResult) { if (value >= 0) { LOGCONF().setMaxLogFileSize(value); } else { oResult.setArgError("Log: Invalid file size value"); } }
virtual void setMemoryPeriod( int value, rho::apiGenerator::CMethodResult& oResult) { if (value >= 0) { LOGCONF().setCollectMemoryInfoInterval(value); } else { oResult.setArgError("Log: Invalid memory period value"); } }
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"); } }
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"); } }