az containerapp java logger

Note

This reference is part of the containerapp extension for the Azure CLI (version 2.62.0 or higher). The extension will automatically install the first time you run an az containerapp java logger command. Learn more about extensions.

Dynamically change log level for Java workloads.

Commands

Name Description Type Status
az containerapp java logger delete

Delete logger for Java workloads.

Extension GA
az containerapp java logger set

Create or update logger for Java workloads.

Extension GA
az containerapp java logger show

Display logger setting for Java workloads.

Extension GA

az containerapp java logger delete

Delete logger for Java workloads.

az containerapp java logger delete [--all]
                                   [--ids]
                                   [--logger-name]
                                   [--name]
                                   [--no-wait]
                                   [--resource-group]
                                   [--subscription]

Examples

Delete all logger settings for Java workloads.

az containerapp java logger delete --all -n my-containerapp -g MyResourceGroup

Delete specific logger with name for Java workloads.

az containerapp java logger delete --logger-name root -n my-containerapp -g MyResourceGroup

Optional Parameters

--all

The flag to indicate all logger settings.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--logger-name

The logger name.

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az containerapp java logger set

Create or update logger for Java workloads.

az containerapp java logger set --logger-level {debug, error, info, off, trace, warn}
                                --logger-name
                                [--ids]
                                [--name]
                                [--no-wait]
                                [--resource-group]
                                [--subscription]

Examples

Create root logger with debug level.

az containerapp java logger set --logger-name root --logger-level debug -n my-containerapp -g MyResourceGroup

Update root logger with debug level.

az containerapp java logger set --logger-name root --logger-level info -n my-containerapp -g MyResourceGroup

Required Parameters

--logger-level

Set the log level for the specific logger name.

Accepted values: debug, error, info, off, trace, warn
--logger-name

The logger name.

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az containerapp java logger show

Display logger setting for Java workloads.

az containerapp java logger show [--all]
                                 [--ids]
                                 [--logger-name]
                                 [--name]
                                 [--resource-group]
                                 [--subscription]

Examples

Display all logger settings for Java workloads.

az containerapp java logger show --all -n my-containerapp -g MyResourceGroup

Display specific logger with name for Java workloads.

az containerapp java logger show --logger-name root -n my-containerapp -g MyResourceGroup

Optional Parameters

--all

The flag to indicate all logger settings.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--logger-name

The logger name.

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.