log-group log-setup
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

log-level

Synopsis

log-level [object] [level] ["class"] [-all] [-r]
<conf_object>.log-level [level] [-r]

Description

This command is used to get or set the log level of all objects in the current namespace, of an object in the current namespace, or globally if -all is set. When object is specified the command will also recursively update log groups for descendants of object whose name matches object.bank[.*], object.port[.*] or object.impl[.*] pattern. If object is a component then the log level will be set for all objects belonging to the component. The flag -r can be used to operate on all the descendants of the object object.

If the class argument is specified, the operation with be done only on objects of that class.

Objects in Simics can generate log messages on different log levels. These messages will be shown in the Simics command line window if the log level for the object has been set high enough.

The default level is 1, and this is the lowest level that objects can report messages on. Setting it to 0 will inhibit output of all messages except error messages.

Messages are also added to an access log that can be viewed by the log command in Simics.

There are four log levels defined:
1 - important messages printed by default
2 - "high-level" informative messages
3 - standard debug messages
4 - detailed information, such as register accesses

The namespace version of this command, log-level, sets the log level on all objects of the specified component. The -r flag recursively updates all sub-components and their objects.

Provided By

Simics Core

See Also

log, <conf_object>.log-group, log-size, log-type, change-namespace
log-group log-setup