SetByLogLevel method of the PS_DnsServerDiagnostics class

Sets debug and logging parameters.

Syntax


uint32 SetByLogLevel(
  [in]  uint32               DebugLogging,
  [in]  uint32               OperationLogLevel2,
  [in]  uint32               OperationLogLevel1,
  [in]  string               ComputerName,
  [in]  boolean              PassThru,
  [out] DnsServerDiagnostics cmdletOutput
);

Parameters

DebugLogging [in]

Specifies the bitmask for Debug Logging.

0x0

The DNS server does not create a log. This is the default entry.

0x10

Logs notifications.

0x20

Logs updates.

0xFE

Logs non-query.

0x100

Logs question transactions.

0x200

Logs answers.

0x1000

Logs send packets.

0x2000

Logs receive packets.

0x4000

Logs UDP packets.

0x8000

Logs TCP packets.

0xFFFF

Logs all packets.

0x10000

Logs Active Directory write transactions.

0x20000

Logs Active Directory update transactions.

0x1000000

Logs full packets.

0x80000000

Logs write-through transactions.

OperationLogLevel2 [in]

Bit flag for log level:

0x01000000

The server logs operational logging information to the log file for activities related to interaction with plug-in DLLs.

OperationLogLevel1 [in]

Bit flag for log level:

0x00000001

The server saves operational logging information to persistent storage.

0x00000010

The server logs event logging information to the log file.

0x00000020

The server logs operational logging information to the log file for server start and stop activities.

0x00002000

The server logs operational logging information to the log file for activities related to loading a zone from the directory server.

0x00004000

The server logs operational logging information to the log file for activities related to writing zone data to the directory server.

0x00020000

The server logs operational logging information to the log file for activities related to updating tombstoned nodes.

0x00100000

The server logs operational logging information to the log file for local resource lookup activities.

0x00200000

The server logs operational logging information to the log file for activities performed during recursive query lookup.

0x00400000

The server logs operational logging information to the log file for activities related to interaction with remote name servers.

ComputerName [in]

Specifies the remote computer on which to execute the command.

PassThru [in]

True to return the object that was modified by the method. By default, this method does not generate any output.

cmdletOutput [out]

On return, contains an instance of the current object. This parameter returns a value only if PassThru is set to true.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Namespace

Root\Microsoft\Windows\Dns

MOF

DnsServerPSProvider.mof

DLL

DnsServerPSProvider.dll

See also

PS_DnsServerDiagnostics

 

 

Show: