Skip to content

Commit

Permalink
updated telemetry and package versions for bootstrap->4.3.1, jquery->…
Browse files Browse the repository at this point in the history
…3.4.1, and updated nlog components
  • Loading branch information
markdomansky committed Oct 23, 2019
1 parent 0100764 commit fbda830
Show file tree
Hide file tree
Showing 9 changed files with 127 additions and 42 deletions.
73 changes: 59 additions & 14 deletions WebJEA/NLog.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
</xs:attribute>
<xs:attribute name="globalThreshold" type="NLogLevel">
<xs:annotation>
<xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged..</xs:documentation>
<xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="throwExceptions" type="xs:boolean">
<xs:annotation>
<xs:documentation>Throw an exception when there is an internal error. Default value is: false.</xs:documentation>
<xs:documentation>Throw an exception when there is an internal error. Default value is: false. Not recommend to set to true in production!</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="throwConfigExceptions" type="xs:boolean">
Expand Down Expand Up @@ -72,7 +72,7 @@
</xs:attribute>
<xs:attribute name="parseMessageTemplates" type="xs:boolean">
<xs:annotation>
<xs:documentation>Perform mesage template parsing and formatting of LogEvent messages (true = Always, false = Never, empty = Auto Detect). Default value is: empty.</xs:documentation>
<xs:documentation>Perform message template parsing and formatting of LogEvent messages (true = Always, false = Never, empty = Auto Detect). Default value is: empty.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
Expand Down Expand Up @@ -123,7 +123,7 @@
</xs:choice>
<xs:attribute name="name" use="optional">
<xs:annotation>
<xs:documentation>Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*</xs:documentation>
<xs:documentation>Name of the logger. May include wildcard characters ('*' or '?').</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="levels" type="NLogLevelList">
Expand Down Expand Up @@ -156,9 +156,9 @@
<xs:documentation>Ignore further rules if this one matches.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="enabled" type="xs:boolean" default="true">
<xs:attribute name="ruleName" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Enable or disable logging rule. Disabled rules are ignored.</xs:documentation>
<xs:documentation>Rule identifier to allow rule lookup with Configuration.FindRuleByName and Configuration.RemoveRuleByName.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
Expand All @@ -171,6 +171,11 @@
<xs:element name="whenNotEqual" type="whenNotEqual" />
<xs:element name="whenRepeated" type="whenRepeated" />
</xs:choice>
<xs:attribute name="defaultAction" type="FilterResult">
<xs:annotation>
<xs:documentation>Default action if none of the filters match.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="NLogLevel">
<xs:restriction base="xs:string">
Expand Down Expand Up @@ -210,12 +215,19 @@
</xs:attribute>
</xs:complexType>
<xs:complexType name="NLogVariable">
<xs:choice minOccurs="0" maxOccurs="1">
<xs:element name="value" minOccurs="0" maxOccurs="1" type="xs:string">
<xs:annotation>
<xs:documentation>Variable value. Note, the 'value' attribute has precedence over this one.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Variable name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="SimpleLayoutAttribute" use="required">
<xs:attribute name="value" type="SimpleLayoutAttribute">
<xs:annotation>
<xs:documentation>Variable value.</xs:documentation>
</xs:annotation>
Expand Down Expand Up @@ -340,6 +352,7 @@
<xs:element name="asyncFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="flushOnConditionOnly" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
</xs:choice>
<xs:attribute name="asyncFlush" type="xs:boolean">
Expand All @@ -357,6 +370,11 @@
<xs:documentation>Name of the target.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="flushOnConditionOnly" type="xs:boolean">
<xs:annotation>
<xs:documentation>Only flush when LogEvent matches condition. Ignore explicit-flush, config-reload-flush and shutdown-flush</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="optimizeBufferReuse" type="xs:boolean">
<xs:annotation>
<xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
Expand Down Expand Up @@ -614,24 +632,31 @@
<xs:enumeration value="Tls" />
<xs:enumeration value="Tls11" />
<xs:enumeration value="Tls12" />
<xs:enumeration value="Tls13" />
<xs:enumeration value="Default" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="NLog.Targets.NLogViewerParameterInfo">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="includeEmptyValue" minOccurs="0" maxOccurs="1" type="xs:boolean" />
</xs:choice>
<xs:attribute name="layout" type="SimpleLayoutAttribute">
<xs:annotation>
<xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
<xs:documentation>Layout that should be use to calculate the value for the parameter.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="name" type="xs:string">
<xs:annotation>
<xs:documentation>Viewer parameter name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="includeEmptyValue" type="xs:boolean">
<xs:annotation>
<xs:documentation>Whether an attribute with empty value should be included in the output</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="ColoredConsole">
<xs:complexContent>
Expand All @@ -645,6 +670,7 @@
<xs:element name="enableAnsiOutput" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="errorStream" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="detectOutputRedirected" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="useDefaultRowHighlightingRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="highlight-row" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleRowHighlightingRule" />
<xs:element name="highlight-word" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleWordHighlightingRule" />
Expand Down Expand Up @@ -691,6 +717,11 @@
<xs:documentation>Indicates whether the error stream (stderr) should be used instead of the output stream (stdout).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="detectOutputRedirected" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicates whether to auto-check if the console has been redirected to file - Disables coloring logic when System.Console.IsOutputRedirected = true</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="useDefaultRowHighlightingRules" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicates whether to use default row highlighting rules.</xs:documentation>
Expand Down Expand Up @@ -1010,7 +1041,7 @@
</xs:attribute>
<xs:attribute name="layout" type="SimpleLayoutAttribute">
<xs:annotation>
<xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
<xs:documentation>Layout that should be use to calculate the value for the parameter.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="dbType" type="xs:string">
Expand Down Expand Up @@ -1358,7 +1389,7 @@
</xs:attribute>
<xs:attribute name="forceMutexConcurrentWrites" type="xs:boolean">
<xs:annotation>
<xs:documentation>Value indicationg whether file creation calls should be synchronized by a system global mutex.</xs:documentation>
<xs:documentation>Indicates whether file creation calls should be synchronized by a system global mutex.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="replaceFileContentsOnEachWrite" type="xs:boolean">
Expand Down Expand Up @@ -1532,6 +1563,7 @@
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
<xs:element name="filter" minOccurs="0" maxOccurs="1" type="Filter" />
<xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
</xs:choice>
<xs:attribute name="name" type="xs:string">
Expand Down Expand Up @@ -2927,7 +2959,7 @@
</xs:attribute>
<xs:attribute name="encode" type="xs:boolean">
<xs:annotation>
<xs:documentation>Determines wether or not this attribute will be Json encoded.</xs:documentation>
<xs:documentation>Determines whether or not this attribute will be Json encoded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="escapeUnicode" type="xs:boolean">
Expand Down Expand Up @@ -2972,16 +3004,24 @@
<xs:extension base="Layout">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="includeAllProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeMdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeNdlc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
</xs:choice>
<xs:attribute name="includeAllProperties" type="xs:boolean">
<xs:annotation>
<xs:documentation>Option to include all properties from the log events</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="includeCallSite" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicates whether to include call site (class and method name) in the information sent over the network.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="includeMdc" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicates whether to include contents of the dictionary.</xs:documentation>
Expand All @@ -3002,6 +3042,11 @@
<xs:documentation>Indicates whether to include contents of the stack.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="includeSourceInfo" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicates whether to include source info (file name and line number) in the information sent over the network.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Expand Down Expand Up @@ -3107,7 +3152,7 @@
</xs:attribute>
<xs:attribute name="elementEncode" type="xs:boolean">
<xs:annotation>
<xs:documentation>Determines wether or not this attribute will be Xml encoded.</xs:documentation>
<xs:documentation>Determines whether or not this attribute will be Xml encoded.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
Expand All @@ -3132,7 +3177,7 @@
</xs:attribute>
<xs:attribute name="encode" type="xs:boolean">
<xs:annotation>
<xs:documentation>Determines wether or not this attribute will be Xml encoded.</xs:documentation>
<xs:documentation>Determines whether or not this attribute will be Xml encoded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="includeEmptyValue" type="xs:boolean">
Expand Down Expand Up @@ -3162,7 +3207,7 @@
</xs:choice>
<xs:attribute name="encode" type="xs:boolean">
<xs:annotation>
<xs:documentation>Determines wether or not this attribute will be Xml encoded.</xs:documentation>
<xs:documentation>Determines whether or not this attribute will be Xml encoded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="name" type="xs:string">
Expand Down
18 changes: 12 additions & 6 deletions WebJEA/Telemetry.vb
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,24 @@ Class Telemetry
Public Sub AddIDs(DomainSid As String, DomainDNSRoot As String, ScriptID As String, UserID As String, Optional Permitted As Boolean = True)

Dim oid As String = StringHash256(DomainSid & ";" & DomainDNSRoot.ToUpper())
#If DEBUG Then
Add("orgid", "DEV")
#Else
Add("orgid", oid)
#End If
Add("scriptid", StringHash256(oid & ";" & ScriptID.ToUpper()))
Add("userid", StringHash256(oid & ";" & UserID.ToUpper()))
Add("permitted", Permitted)

End Sub

Public Sub AddRuntime(SecondsRuntime As Single, Optional isOnload As Boolean = False)
Public Sub AddIsOnload(state As Boolean)
Add("IsOnload", state)
End Sub

Public Sub AddRuntime(SecondsRuntime As Single)

Dim RuntimeName = "runtimesec"
If isOnload Then RuntimeName = "runtimesecOnload"
Add(RuntimeName, (Math.Ceiling(SecondsRuntime * 10D) / 10D).ToString()) 'round up to 1 decimal
Add("runtimesec", (Math.Ceiling(SecondsRuntime * 10D) / 10D).ToString()) 'round up to 1 decimal

End Sub

Expand Down Expand Up @@ -102,11 +108,11 @@ Class Telemetry

Dim wints As DateTime = DateTime.UtcNow
Dim ts As Integer = (wints - New DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds
Dim version As String = "2" 'version of string format
Dim version As String = "3" 'version of string format

Add("wints", wints.ToString("yyyy-MM-dd hh:mm:ss"))
Add("unixts", ts)
Add("version", version)
Add("msgversion", version)

End Sub

Expand Down
2 changes: 1 addition & 1 deletion WebJEA/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</system.webServer> <applicationSettings>
<WebJEA.My.MySettings>
<setting name="configfile" serializeAs="String">
<value>C:\prj\WebJEA CE\WebJEATest\configlocal.json</value>
<value>C:\prj\WebJEATest\configlocal.json</value>
</setting>
</WebJEA.My.MySettings>
</applicationSettings>
Expand Down
10 changes: 8 additions & 2 deletions WebJEA/WebJEA.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,26 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Debug|x64.ActiveCfg = Debug|x64
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Debug|x64.Build.0 = Debug|x64
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Release|Any CPU.Build.0 = Release|Any CPU
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Release|x64.ActiveCfg = Release|x64
{0327F3B9-9BEA-4F00-86A5-C7355A1FC5D0}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
BuildVersion_UseGlobalSettings = True
BuildVersion_StartDate = 2000/1/1
SolutionGuid = {6AC2BC8A-23E5-4208-A7BD-C7BBA12AE5E9}
BuildVersion_StartDate = 2000/1/1
BuildVersion_UseGlobalSettings = True
EndGlobalSection
EndGlobal
Loading

0 comments on commit fbda830

Please sign in to comment.