Index: vhLib/Logging.cls.xml
===================================================================
diff -u -r3555 -r3883
--- vhLib/Logging.cls.xml (.../Logging.cls.xml) (revision 3555)
+++ vhLib/Logging.cls.xml (.../Logging.cls.xml) (revision 3883)
@@ -36,6 +36,17 @@
%Time
+
+%String
+1
+ Set {*}= $ZDT( {datum}_","_{tijd},3,7 )
+1
+
+
+
+%BigInt
+
+
"E" = error
@@ -209,6 +220,10 @@
CspSessionId
+
+SequenceId
+
+
1
objectgenerator
@@ -243,7 +258,7 @@
#dim ServerPrefix As %String = "["_$$$UCase($$$Server)_"] "
#dim Subject As %String = ServerPrefix _ $S(Niveau="I":"Info",Niveau="E":"Error",Niveau="W":"Warning",Niveau="D":"Debug",1:"")_" - "
- Set Subject = Subject _ oLog.Groep_" : "_ Actie _ " - " _ $ZDT($H,4)
+ Set Subject = Subject _ oLog.Groep_" : "_ Actie _ " - SessionID: " _ oLog.SessionID _ " - " _ $ZDT($H,4)
; voortijdige quit indien een fout bij het opslaan van de log
@@ -252,6 +267,7 @@
If ( scSave ) && ( SendMail ) & ( Niveau '= "D" ){
#dim Body As %GlobalCharacterStream = ##class(%GlobalCharacterStream).%New()
Do Body.WriteLine($$GetJobInfo^vhLib.System())
+ Do Body.WriteLine("SessionID: " _ oLog.SessionID)
Do Body.WriteLine("")
;Do Body.CopyFrom(oLog.GenMailBody())
Do Body.WriteLine(oLog.Detail)
@@ -298,13 +314,15 @@
set ..GebruikerID = ##class(TECH.Context.RuntimeContext).Instance().GeefGebruikerID()
set ..Gebruiker = ##class(TECH.Context.RuntimeContext).Instance().GeefGebruikerInitialen()
set ..SessionID = ##class(TECH.Context.RuntimeContext).Instance().GeefSessieID()
+ Set ..SequenceId = $Increment(^vhLib.LoggingSequence)
+
- if $IsObject(Detail) {
+ if $IsObject(Detail) {
Do ..DetailAsStream.CopyFrom(Detail)
+ Do Detail.Rewind()
set ..Detail = Detail.Read(10000) // Dubbel..
do Detail.Rewind()
- }
- else {
+ } else {
Set ..Detail = Detail
do ..DetailAsStream.WriteLine(Detail)
}
@@ -319,6 +337,39 @@
]]>
+
+
+Deze method mag geen ConfigMgr-acties oproepen.
+1
+Groep:%String,Niveau:vhLib.enu.LogNiveau,Actie:%String,Detail:%String
+
+
+
1
blnMultiLine:%String,Indent:%String
@@ -459,6 +510,9 @@
CspSessionId
+
+SequenceId
+