' ************************************************************************************ ' * Copyright 2002 Devin S. Olson ' * ' * Licensed under the Apache License, Version 2.0 (the "License"); ' * you may not use this file except in compliance with the License. ' * You may obtain a copy of the License at ' * ' * http://www.apache.org/licenses/LICENSE-2.0 ' * ' * Unless required by applicable law or agreed to in writing, software ' * distributed under the License is distributed on an "AS IS" BASIS, ' * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ' * See the License for the specific language governing permissions and ' * limitations under the License. ' * ' ************************************************************************************ ' ************************************************************************************ ' BEGIN NOTICE ' * NOTICE ' * Enhanced Log ' * Copyright (c) 2002 - 2052 Devin S. Olson. All rights reserved. ' * ' * Developed by: Devin S. Olson ' * azlighthouse works, llc. ' * http://www.azlighthouse.com ' * ' * Permission is hereby granted, free of charge, to any person obtaining a copy ' * of this software and associated documentation files (the "Software"), to ' * deal with the Software without restriction, including without limitation the ' * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or ' * sell copies of the Software, and to permit persons to whom the Software is ' * furnished to do so, subject to the following conditions: ' * ' * 1. Redistributions of source code must retain the above copyright notice, ' * this list of conditions and the following disclaimers. ' * ' * 2. Redistributions in binary form must reproduce the above copyright ' * notice, this list of conditions and the following disclaimers in the ' * documentation and/or other materials provided with the distribution. ' * ' * 3. Neither the names of Devin S. Olson, azlighthouse works, nor the names ' * of its contributors may be used to endorse or promote products derived ' * from this Software without specific prior written permission. ' * ' * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ' * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ' * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ' * CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ' * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING ' * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS ' * WITH THE SOFTWARE. ' * ' * NOTICE TRANSLATION: ' * You can give away this code. ' * You can sell this code. ' * You can use this code in your programs, either to give away or to sell. ' * You can to whatever you want to do with this code, ' * AS LONG AS YOU CREDIT THE AUTHOR AND INCLUDE THE ABOVE LICENSE AND NOTICE. ' * It is very simple: don't be a jerk and claim that you wrote the code. ' * END NOTICE ' ************************************************************************************
Name | Value | Comment |
---|---|---|
Public FORMALIAS_EVENTS | |Events| | |
Public FORMNAME_ENHANCEDLOGCONFIG | |enhLogConfig| | |
Public FORMNAME_MEMO | |Memo| | |
Public ITEMNAME_ENHLOG_HTMLVIEWRESOURCE | |enhLog_HTMLviewreSource| | |
Public ITEMNAME_ENHLOG_PROFILEMETHODCOUNT | |enhLogProfileMethodCount| | |
Public ITEMNAME_ENHLOG_PURGE_AGE | |enhLogPurgeAge| | |
Public ITEMNAME_ENHLOG_TARGET_FILEPATH | |enhLogTargetFilepath| | |
Public ITEMNAME_ENHLOG_TARGET_SERVER | |enhLogTargetServer| | |
Public ITEMNAME_ENHLOG_YN_AUTOSAVE | |enhLogAutoSave| | |
Public ITEMNAME_ENHLOG_YN_INCLUDEMETHODNAMES | |enhLogIncludeMethodNames| | |
Public ITEMNAME_ENHLOG_YN_LOCALECHO | |enhLogLocalEcho| | |
Public ITEMNAME_ENHLOG_YN_LOGACTIONS | |enhLogActions| | |
Public ITEMNAME_ENHLOG_YN_LOGENABLED | |ITEMNAME_ENHLOG_YN_LOGENABLED| | |
Public ITEMNAME_ENHLOG_YN_LOGERRORS | |enhLogErrors| | |
Public ITEMNAME_ENHLOG_YN_LOGMETHODRESULTS | |enhLogMethodResults| | |
Public ITEMNAME_ENHLOG_YN_LOGSTACKEXCEPTIONS | |enhLogStackExceptions| | |
Public ITEMNAME_ENHLOG_YN_LOGWARNINGS | |enhLogWarnings| | |
Public ITEMNAME_ENHLOG_YN_OVERWRITE | |enhLogOverwriteFile| | |
Public ITEMNAME_ENHLOG_YN_PROFILINGENABLED | |enhLogEnableMethodProfiling| | |
Public ITEMNAME_ENHLOG_YN_PURGEENABLED | |enhLogEnableScheduledPurge| | |
Public ITEMNAME_ENHLOG_YN_RESUMEONFAIL | |enhLogResumeOnFail| | |
Public LOG_DOC_MAX_SIZE | 500000 |
ErrorInfo | Carrier for Error Information |
LogEntry | Log Entry information |
ProfiledMethodElement | Information about a profiled method. |
StackTraceElement | Summary information about a stack trace |
enhLogOutputToNotesLog (Get) As Boolean |
FILEPATH_ENHANCEDLOG_FILE (Get) As String |
enhLogOutputToNotesLog (Set) As Boolean |
EnhancedLog | Wrapper for the Singleton Worker Class. Exposes all public logging methods. |
enhLogAction(prefix As String, description As String) As Boolean |
enhLogActionWithLink(prefix As String, description As String, linkTo As Variant, linkcomment As String, HotSpotText As String) As Boolean |
enhLogAppendAsDocLink(source As NotesDocument, fieldname As String, linkcomment As String, hotspottext As String) As Boolean |
enhLogArchiveDocuments(server As String, filepath As String, view As String, max As Long, purge As Boolean, archived As Long, purged As Long) As Boolean |
enhLogCreateLog(programname As String) As EnhancedLog |
enhLogException(prefix As String, description As String) As Boolean |
enhLogExceptionCarrier(ec As ExceptionCarrier) As Boolean |
enhLogExceptionWithLink(prefix As String, description As String, linkTo As Variant, linkcomment As String, HotSpotText As String) As Boolean |
enhLogExtendedContent(prefix As String, description As String, extendedcontent As String) As Boolean |
enhLogExtendedContentWithLink(prefix As String, description As String, extendedcontent As String, linkTo As Variant, linkcomment As String, HotSpotText As String) As Boolean |
enhLogGetCachedErrorCode() As Integer |
enhLogGetCachedErrorExtended() As String |
enhLogGetCachedErrorLine() As Integer |
enhLogGetCachedErrorMessage() As String |
enhLogGetCachedErrorMethod() As String |
enhLogGetCachedErrorTimestamp() As String |
enhLogGetConfigItemNames() As Variant |
enhLogGetLatestLog() As NotesDocument |
enhLogGetLogConfigDb() As NotesDatabase |
enhLogGetLogConfigDoc(spawnNew As Boolean) As NotesDocument |
enhLogGetLogConfigText(itemname As String) As String |
enhLogGetLogConfigUNID() As String |
enhLogGetMethodTicks(classname As String) As Double |
enhLogGetNotesLogForm() As String |
enhLogGetProfiledMethodsXMLstream(includeAll As Boolean) As NotesStream |
enhLogGetProfileMethodTriggerCount(source As String) As Long |
enhLogGetProgramName() As String |
enhLogGetSubject() As String |
enhLogGetTaggedMilliseconds(tag As String) As Double |
enhLogGetTaggedTicks(tag As String) As Double |
enhLogHasCachedError() As Boolean |
enhLogHasEntries() As Boolean |
enhLogHasErrors() As Boolean |
enhLogIsLogDisabled() As Boolean |
enhLogIsProfilingEnabled() As Boolean |
enhLogProfileMethodFinish(classname As String, operation As String) As Double |
enhLogProfileMethodStart(classname As String, operation As String) As Double |
enhLogResetDbLog() As Boolean |
enhLogStackTrace(prefix As String, description As String) As Boolean |
enhLogTicksPerSecond() As Long |
enhLogTicksToMilliseconds(source As Double) As Double |
enhLogWarning(prefix As String, description As String) As Boolean |
enhLogWarningWithLink(prefix As String, description As String, linkTo As Variant, linkcomment As String, HotSpotText As String) As Boolean |
getEnhLog() As EnhancedLog |
getFormPrefixForLogging(subform_prefix As String) As String |
Save(force As Boolean, createResponse As Boolean) As Boolean |
enhLogAllDocItems(source As NotesDocument) |
enhLogClearCachedError() |
enhLogCloseLog() |
enhLogDumpContent(prefix As String, filepath As String) |
enhLogLogMethodResult(description As String) |
enhLogLogMethodResultWithLink(description As String, linkTo As Variant, linkComment As String, HotSpotText As String) |
enhLogReleaseVersionBuild() |
enhLogSetActionsIncludeMethodNames(source As Boolean) |
enhLogSetAutoSave(source As Boolean) |
enhLogSetCommonProperties(progname As String, localEcho As Boolean, logActions As Boolean, logMethodResults As Boolean, logErrors As Boolean, logStackExceptions As Boolean) |
enhLogSetLocalEcho(source As Boolean) |
enhLogSetLogActions(source As Boolean) |
enhLogSetLogErrors(source As Boolean) |
enhLogSetLogMethodResults(source As Boolean) |
enhLogSetLogStackExceptions(source As Boolean) |
enhLogSetLogWarnings(source As Boolean) |
enhLogSetOverwriteFile(source As Boolean) |
enhLogSetProgramName(source As String) |
enhLogSetResumeOnLoggingFailure(source As Boolean) |
enhLogSetSendTo(source As Variant) |
enhLogSetSubject(source As String) |
enhLogSetUserName(source As NotesName) |
enhLogSetUserNameAbbrev(source As String) |
Public Property Get enhLogOutputToNotesLog As Boolean | ||||
---|---|---|---|---|
Indicates if log activity should be recorded using the Events form in the Notes Log (log.nsf by default) |
Public Property Get FILEPATH_ENHANCEDLOG_FILE As String | ||||
---|---|---|---|---|
Gets the Filepath for the current Enhanced Log File |
Public Function enhLogGetCachedErrorCode() As Integer | ||||
---|---|---|---|---|
Gets the most recently cached Error Code |
Public Function enhLogGetCachedErrorExtended() As String | ||||
---|---|---|---|---|
Gets the most recently cached extended error information |
Public Function enhLogGetCachedErrorLine() As Integer | ||||
---|---|---|---|---|
Gets the Enhanced Log's Cached Error Line |
Public Function enhLogGetCachedErrorMessage() As String | ||||
---|---|---|---|---|
Gets the most recently cached error message. |
Public Function enhLogGetCachedErrorMethod() As String | ||||
---|---|---|---|---|
Gets the most recently cached error method. |
Public Function enhLogGetCachedErrorTimestamp() As String | ||||
---|---|---|---|---|
Gets the most recently cached error timestamp. |
Public Function enhLogGetConfigItemNames() As Variant | ||||
---|---|---|---|---|
Gets the Enhanced Log Item Name constant strings. |
Public Function enhLogGetLatestLog() As NotesDocument | ||||
---|---|---|---|---|
Gets the latest log document. |
Public Function enhLogGetLogConfigDb() As NotesDatabase | ||||
---|---|---|---|---|
Gets an open instance of the Database defined in the Log Config document. |
Public Function enhLogGetLogConfigUNID() As String | ||||
---|---|---|---|---|
Gets the UniversalID of the EnhancedLog Configuration document. |
Public Function enhLogGetNotesLogForm() As String | ||||
---|---|---|---|---|
ets the name of the form used for logging |
Public Function enhLogGetProgramName() As String | ||||
---|---|---|---|---|
Gets the program name for the Enhaced Log |
Public Function enhLogGetSubject() As String | ||||
---|---|---|---|---|
Gets the subject for the Enhanced Mail Log |
Public Function enhLogHasCachedError() As Boolean | ||||
---|---|---|---|---|
Indicates if the object has a Cached Error |
Public Function enhLogIsLogDisabled() As Boolean | ||||
---|---|---|---|---|
Indicates if the object is Disabled. |
Public Function enhLogIsProfilingEnabled() As Boolean | ||||
---|---|---|---|---|
Indicates if Method Profiling is Enabled |
Public Function enhLogResetDbLog() As Boolean | ||||
---|---|---|---|---|
Writes all pending log operations to disk and resets the log. |
Public Function enhLogTicksPerSecond() As Long | ||||
---|---|---|---|---|
Returns the number of Clock Ticks which occur per second. |
Public Sub enhLogReleaseVersionBuild() | ||||
---|---|---|---|---|
Writes the Enhanced Log Release, Version, and Build number to the log. |
Public Sub enhLogSetAutoSave(source As Boolean) | ||||
---|---|---|---|---|
Sets the AutoSave property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | Boolean | Flag indicating AutoSave |
Public Sub enhLogSetLocalEcho(source As Boolean) | ||||
---|---|---|---|---|
Sets the LocalEcho property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | Boolean | Flag indicating LocalEcho |
Public Sub enhLogSetLogActions(source As Boolean) | ||||
---|---|---|---|---|
Sets the LogActions property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | Boolean | Flag indicating LogActions |
Public Sub enhLogSetLogErrors(source As Boolean) | ||||
---|---|---|---|---|
Sets the LogErrors property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | Boolean | Flag indicating LogErrors |
Public Sub enhLogSetLogWarnings(source As Boolean) | ||||
---|---|---|---|---|
Sets the LogWarnings property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | Boolean | Flag indicating LogWarnings |
Public Sub enhLogSetOverwriteFile(source As Boolean) | ||||
---|---|---|---|---|
Sets the OverwriteFile property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | Boolean | Flag indicating OverwriteFile |
Public Sub enhLogSetProgramName(source As String) | ||||
---|---|---|---|---|
Sets the ProgramName property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | String | Program Name |
Public Sub enhLogSetSendTo(source As Variant) | ||||
---|---|---|---|---|
Sets the SendTo property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | Variant | SendTo String Array |
Public Sub enhLogSetSubject(source As String) | ||||
---|---|---|---|---|
Sets the Subject property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | String | Subject for the Mail Log |
Public Sub enhLogSetUserName(source As NotesName) | ||||
---|---|---|---|---|
Sets the UserName property of the Enhanced Log. | ||||
idx | Argument | Data Type | Attributes | Comments |
1 | source | NotesName | User name for the log |
Copyright © HCL America, Inc. 1999, 2023. All Rights Reserved.