Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option

Description

[-reset]

Resets the logging to default settings, for example:

mzsh <user name>/<password> logger -pico <ec> -reset

This option cannot be used in combination with any other option.

[-stacktrace]

Turns stacktrace on or off, for example:

mzsh <user name>/<password> logger -pico <ec> -stacktrace OFF

The default value is on.

[-level]

Determines for which severity levels events should be logged; OFF, ERROR, WARN, INFO, CONFIG, DEBUG, TRACE, FINEST, or ALL, for example:

mzsh <user name>/<password> logger -pico <ec> -level WARN

Note

Caution!

If you set the level to a detailed log level, such as DEBUG, TRACE, or FINEST, logging will be done for all classes in the selected pico(s), including APL logging, which may have a negative impact on performance.

To avoid thisexcessive logging when using these log levels, you can add the -package flag, described below, to state a package, for example, the aplLogger package, like this:

mzsh <user name>/<password> logger -pico <ec> -level debug -package aplLogger

to only do DEBUG logging for APL.

[-file]

Will log to an additional file stated with filename, for example:

mzsh <user name>/<password> logger -pico <ec> -file mylogfile.txt

[-package]

Will only log events for the stated package or class, for example:

mzsh <user name>/<password> logger -pico <ec> -level debug -package aplLogger

Note!

When you use the -package option and state the aplLogger package, you can also specify a specific workflow like this:

mzsh <user name>/<password> logger -pico <ec> -level debug -package aplLogger.<workflow name>

...