Name

set filter level, log.setfilterlevel, kPMRPCLogSetFilterLevel — Set the filter level for new log messages.

Synopsis

void log.setfilterlevel( level);
level : string, choice, default;

Description

Set the filter level for new log messages.

Parameters

level. Value to set the filter level to. level is a string. If level is omitted, the default notice is used. level must be one of the following eight constants:

  • emergency, kPMRPCParameterLevel_SetFilterLevel_Emergency.
  • alert, kPMRPCParameterLevel_SetFilterLevel_Alert.
  • critical, kPMRPCParameterLevel_SetFilterLevel_Critical.
  • error, kPMRPCParameterLevel_SetFilterLevel_Error.
  • warning, kPMRPCParameterLevel_SetFilterLevel_Warning.
  • notice, kPMRPCParameterLevel_SetFilterLevel_Notice.
  • information, kPMRPCParameterLevel_SetFilterLevel_Information.
  • debug, kPMRPCParameterLevel_SetFilterLevel_Debug.

Security

set filter level can be requested by any authenticated client.

Unauthenticated clients are authorized using the uk.co.dssw.powermanager.log.setfilterlevel right. By default, only local processes belonging to administrator can send a set filter level request.

Availablility

pmdctl

Examples

Example 79. C: Minimal log.setfilterlevel

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault, kPMRPCLogSetFilterLevel);