Skip to content

Latest commit

 

History

History
265 lines (162 loc) · 5.15 KB

set-log-level-1b495d7.md

File metadata and controls

265 lines (162 loc) · 5.15 KB

set-log-level

This command sets a log level for one or multiple loggers.

Remember:

SAP Business Technology Platform, Neo environment will sunset on December 31, 2028, subject to terms of customer or partner contracts.

For more information, see SAP Note 3351844.

Tip:

This documentation refers to SAP Business Technology Platform, Neo environment. If you are looking for documentation about other environments, see SAP Business Technology Platform ↗️.

neo set-log-level  --account <subaccount_technical_name> --application <application_name> --user <e-mail_or_user> --host <host> --loggers <logger_name1>,<logger_name2>,... --level <log_level>

Simple Logging Facade for Java (SLF4J) uses the following log levels:

Level

Description

ALL

This level has the lowest possible rank and is intended to turn on all logging.

TRACE

This level designates finer-grained informational events than DEBUG.

DEBUG

This level designates fine-grained informational events that are most useful to debug an application.

INFO

This level designates informational messages that highlight the progress of the application at coarse-grained level.

WARN

This level designates potentially harmful situations.

ERROR

This level designates error events that might still allow the application to continue running.

OFF

This level has the highest possible rank and is intended to turn off logging.

Caution:

HTTP headers are logged in plain text once the log level is set to DEBUG or ALL. Thus, in case they contain any sensitive information, such as passwords kept in an HTTP Authorization header, it’s disclosed in the logs.

Parameters

To list all parameters available for this command, execute neo help set-log-level in the command line.

Required

-a, --account

Subaccount technical name

Type: string (up to 30 characters; lowercase letters and numbers, starting with a letter)

-b, --application

Application name

Type: string (up to 30 characters; lowercase letters and numbers, starting with a letter)

-g, --loggers

Single or multiple comma-separated logger names

Type: string

-h, --host

Enter a region host.

Type: URL, for acceptable values see Regions ↗️.

-l, --level

The log level you want to set for the logger(s)

Type: string

-p, --password

Password for the specified user. To protect your password, enter it only when prompted by the console client and not explicitly as a parameter in the properties file or the command line.

Type: string

-u, --user

Your email, SAP ID or user name

Type: string

Example

neo set-log-level --account mysubaccount --application demo --user p1234567890 --host hana.ondemand.com --loggers com.acme.foo,com.acme.bar --level ERROR

Related Information

Using Logs in the Console Client ↗️

Exit Codes