Service: zimbraAdmin
Namespace: "urn:zimbraAdmin"
AddAccountLogger SOAP Command

Changes logging settings on a per-account basis
Adds a custom logger for the given account and log category. The logger stays in effect only during the lifetime of the current server instance. If the request is sent to a server other than the one that the account resides on, it is proxied to the correct server.

If the category is "all", adds a custom logger for every category or the given user.

Authorization token required true
Admin Authorization token required true

AddAccountLoggerRequest

    <AddAccountLoggerRequest> ## AddAccountLoggerRequest
        <id>{id} (String)</id>
        <account by="{acct-selector-by} (adminName|appAdminName|id|foreignPrincipal|name|krb5Principal)">{key}</account> ## AccountSelector
        <logger category="{category-name}" [level="(error|warn|info|debug|trace)"] /> ## LoggerInfo
    </AddAccountLoggerRequest>

The following table describes elements and attributes you can define within a <AddAccountLoggerRequest> element:

XPath Required / Optional Description
/id Optional (0 or 1) Type:{id} (String)
Deprecated - use <account> instead
/account Optional (0 or 1) Type:{key}
Use to select account
Description for element text content:The key used to identify the account. Meaning determined by {acct-selector-by}
/account@by Required (only 1) Type:adminName|appAdminName|id|foreignPrincipal|name|krb5Principal
Select the meaning of {acct-selector-key}
/logger Required (only 1) Logger category
/logger@category Required (only 1) Type:String
name of the logger category
/logger@level Optional (0 or 1) Type:error|warn|info|debug|trace
level of the logging.

AddAccountLoggerResponse

    <AddAccountLoggerResponse> ## AddAccountLoggerResponse
        (<logger category="{category-name}" [level="(error|warn|info|debug|trace)"] /> ## LoggerInfo)*
    </AddAccountLoggerResponse>

The following table describes elements and attributes you can define within a <AddAccountLoggerResponse> element:

XPath Required / Optional Description
/logger Optional (0 or more) Information on loggers
/logger@category Required (only 1) Type:String
name of the logger category
/logger@level Optional (0 or 1) Type:error|warn|info|debug|trace
level of the logging.