Written by

Developer at NestorIT GmbH
Question Sebastian Thiele · Jan 8, 2019

Determine if Namespace is Ensemble enabled and logging to console log file

Hi everybody,

I am looking for a way to detimerine if a certain namespace is ensemble enabled. I´ve seen such a solution somewhere in the past but can´t find it anymore. Is there a simplistic api around for that?

My second question is in context of log some information to the console log file with a certain error level. Also, I´ve seen this in the past and can´t find it agian. I guess there was some kind of simple api to use for this.

Thank you for your help.

best regards,

sebastian

Comments

Eduard Lebedyuk · Jan 8, 2019

In the future please don't combine separate questions into one post.

I am looking for a way to detimerine if a certain namespace is ensemble enabled.

To check that some <namespace> has Ensemble enabled call:

write ##class(%EnsembleMgr).IsEnsembleNamespace(<namespace>)

where <namespace> defaults to current namespace.

Log some information to the console log file with a certain error level.

%SYS.System class provides the WriteToConsoleLog method, which you can use to write to the cconsole.log file.

0
Sebastian Thiele  Jan 8, 2019 to Eduard Lebedyuk

Thank you Eduard for the fast response on my questions. This totaly meets my usecase.

Best regards,

Sebastian

0