Home > Class Reference > %SYS namespace > %ZHSLIB.PackageManager.Core.LogManager.Message

%ZHSLIB.PackageManager.Core.LogManager.Message

class %ZHSLIB.PackageManager.Core.LogManager.Message extends %Library.RegisteredObject

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property Count as %Integer [ InitialExpression = 1 ];
Property methods: CountDisplayToLogical(), CountGet(), CountIsValid(), CountLogicalToDisplay(), CountNormalize(), CountSet()
property Message as %String);
Property methods: MessageDisplayToLogical(), MessageGet(), MessageIsValid(), MessageLogicalToDisplay(), MessageLogicalToOdbc(), MessageNormalize(), MessageSet()
property Severity as %Integer (DISPLAYLIST = ",TRACE,INFO,WARNING,ERROR", VALUELIST = ",0,1,2,3");
Severity display name -> logical value also available via macros in %ZHSLIB.PackageManager.Common.inc:
  $$$HSPMLogTRACE
  $$$HSPMLogINFO
  $$$HSPMLogWARNING
  $$$HSPMLogERROR
  
Property methods: SeverityDisplayToLogical(), SeverityGet(), SeverityIsValid(), SeverityLogicalToDisplay(), SeverityNormalize(), SeveritySet()

Methods (Including Private)

private method %OnNew(pMessage As %String, pSeverity As %Integer) as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

method Display() [ Language = objectscript ]
Outputs the message to the current device.
method GetHash() as %String [ Language = objectscript ]

Inherited Members

Inherited Methods (Including Private)

FeedbackOpens in a new window