Set-ASAppMessageLogging
TOC
Collapse the table of content
Expand the table of content

Set-ASAppMessageLogging

Set-ASAppMessageLogging

Changes the message logging configuration for an application.

Syntax

Parameter Set: SiteNameAndVirtualPath
Set-ASAppMessageLogging [-SiteName] <String> [[-VirtualPath] <String> ] [-FilePath <String> ] [-LogEntireMessage <Boolean> ] [-LogMalformedMessages <Boolean> ] [-LogMessagesAtServiceLevel <Boolean> ] [-LogMessagesAtTransportLevel <Boolean> ] [-MaxMessagesToLog <Int32> ] [-MaxSizeOfMessageToLog <Int32> ] [ <CommonParameters>]


Parameters

-ApplicationObject<ApplicationInfo>

An object that application configuration cmdlets output.  This allows piping IIS configuration scope between commands.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

-FilePath<String>

Required. Where the logs should be stored.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-LogEntireMessage<Boolean>

Optional. Specifies the value of the /configuration/system.serviceModel/diagnostics/messageLogging[@logEntireMessage] attribute. If missing then the attribute is not changed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-LogMalformedMessages<Boolean>

Optional. Specifies the value of the /configuration/system.serviceModel/diagnostics/messageLogging[@logMalformedMessages] attribute. If missing then the attribute is not changed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-LogMessagesAtServiceLevel<Boolean>

Optional. Specifies the value of the /configuration/system.serviceModel/diagnostics/messageLogging[@logMessagesAtServiceLevel] attribute. If missing then the attribute is not changed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-LogMessagesAtTransportLevel<Boolean>

Optional. Specifies the value of the /configuration/system.serviceModel/diagnostics/messageLogging[@logMessagesAtTransportLevel] attribute. If missing then the attribute is not changed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-MaxMessagesToLog<Int32>

Optional. Specifies the value of the /configuration/system.serviceModel/diagnostics/messageLogging[@maxMessagesToLog] attribute. If missing then the attribute is not changed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-MaxSizeOfMessageToLog<Int32>

Optional. Specifies the value of the /configuration/system.serviceModel/diagnostics/messageLogging[@maxSizeOfMessageToLog] attribute. If missing then the attribute is not changed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-Root

Indicates that only the root web.config file should be targeted.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

-SiteName<String>

The IIS Web Site Name used to filter the configuration search.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-Uri<Uri>

The Uri to an application whose configuration should be targeted.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-VirtualPath<String>

The IIS Virtual Path used to filter the configuration search.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • ApplicationInfo


Outputs

The output type is the type of the objects that the cmdlet emits.

  • MessageLoggingInfo


Examples

Show:
© 2016 Microsoft