Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes

Change language to:
English - Français - Português - Русский
Scilabヘルプ >> Xcos > Scilab Utilities Functions > scicos_log

scicos_log

Logger utility for scicos

Syntax

log=scicos_log(log);
log=scicos_log(log, msg);
refCounters=scicos_log("refCounters");

Arguments

log

String, logger value. The supported log modifiers are : "FATAL", "ERROR", "WARNING", "INFO", "DEBUG", "TRACE"

msg

String, the message to log.

refCounters

a double vector, with a [uid, kind, reference counter] line per object.

Description

This function implements a logger for scicos operation. This function lets the user choose the right level of information to print while loading a model, compiling and simulating it.

It is also used to produce statistics or global analysis for specific flags. For exemple, passing "refCounters" will return uid, kind and reference count of all objects.

Examples

scicos_log("TRACE"),
scicos_log("TRACE", "this is a trace message");
loadXcosLibs();
scicos_log("refCounters")
b = scicos_block();
scicos_log("refCounters")

See also

Report an issue
<< scicos_getvalue Scilab Utilities Functions standard_define >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:38:05 CET 2022