Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
Signed-off-by: m-g-k <mgk@uk.ibm.com>
  • Loading branch information
m-g-k committed Feb 12, 2022
1 parent fee5390 commit e071326
Show file tree
Hide file tree
Showing 45 changed files with 5,267 additions and 24 deletions.
364 changes: 364 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.txt
**/obj/*
**/bin/*
test/**/coveragereport/*
test/**/coveragereporthistory/*
test/**/TestResults/*
out/*
*.zip
32 changes: 32 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build - Debug",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/EventLogMonitor/bin/Debug/net6.0-windows/EventLogMonitor.dll",
// "args": ["-p", "10", "-c", "De-DE", "-s", "*", "-v", "-l", "OAlerts"],
// "args": ["-p", "*", "-i", "256688", "-b1", "-nt"],
// "args": ["-l2", "System,Windows PowerShell", "-d"],
// "args": ["-p", "30", "-nt", "-l" , "Windows PowerShell"],
"args": ["-p", "3", "-nt", "-l" , "System", "-s", "Http", "-c", "en-DE"],
// "args":["-p", "*", "-3", "-l", "Security", "-fi", "Windows Firewall did not apply the following rule"],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
191 changes: 191 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build - Debug",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/EventLogMonitor/EventLogMonitor.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build - Release",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/EventLogMonitor/EventLogMonitor.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"-c",
"Release"
],
"problemMatcher": "$msCompile",
"group": "build"
},
{
"label": "publish - Release as a single file WITH runtime",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/EventLogMonitor/EventLogMonitor.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"-c",
"Release",
"-r",
"win-x64",
"/p:PublishSingleFile=true",
"/p:IncludeNativeLibrariesForSelfExtract=true",
"--self-contained",
"true",
"-p:PublishReadyToRun=true"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish - Release as a single file WITHOUT runtime",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/EventLogMonitor/EventLogMonitor.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"-c",
"Release",
"-r",
"win-x64",
"/p:PublishSingleFile=true",
"/p:IncludeNativeLibrariesForSelfExtract=true",
"--self-contained",
"false",
"-p:PublishReadyToRun=true"
],
"problemMatcher": "$msCompile"
},
{
"label": "clean - Debug",
"command": "dotnet",
"type": "process",
"args": [
"clean",
"${workspaceFolder}/src/EventLogMonitor/EventLogMonitor.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"-c",
"Debug"
],
"problemMatcher": "$msCompile"
},
{
"label": "clean - Release",
"command": "dotnet",
"type": "process",
"args": [
"clean",
"${workspaceFolder}/src/EventLogMonitor/EventLogMonitor.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"-c",
"Release"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch - Debug Build",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"build",
"--project",
"${workspaceFolder}/src/EventLogMonitor/EventLogMonitor.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch - Debug Tests",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"test",
"--project",
"${workspaceFolder}/test/EventLogMonitorTests/EventLogMonitorTests.csproj",
],
"problemMatcher": "$msCompile"
},
{
"label": "run tests against Release build",
"command": "dotnet",
"type": "process",
"args": [
"test",
"-c",
"Release"
],
"problemMatcher": "$msCompile"
},
{
"label": "run tests with code coverage",
"command": "dotnet",
"type": "process",
"args": [
"test",
"--collect:\"XPlat Code Coverage\"",
"--results-directory=./test/EventLogMonitorTests/TestResults/CoverageResults/"
],
"problemMatcher": "$msCompile"
},
{
"label": "generate html code coverage report",
"command": "reportgenerator",
"type": "process",
"args": [
"-reports:\"./test/EventLogMonitorTests/TestResults/CoverageResults/*/coverage.cobertura.xml\"",
"-targetdir:\"test/EventLogMonitorTests/coveragereport\"",
"-historydir:\"test/EventLogMonitorTests/coveragereporthistory\"",
"-title:EventLogMonitor",
"-reporttypes:Html"
],
"dependsOn": [
"run tests with code coverage"
],
"problemMatcher": []
},
{
"label": "generate and view html code coverage report in default browser",
"command": "explorer",
"type": "process",
"args": [
"${workspaceFolder}\\test\\EventLogMonitorTests\\coveragereport\\index.html"
],
"dependsOn": [
"generate html code coverage report"
],
"problemMatcher": []
},
{
"label": "view most recent html code coverage report in default browser",
"command": "explorer",
"type": "process",
"args": [
"${workspaceFolder}\\test\\EventLogMonitorTests\\coveragereport\\index.html"
],
"problemMatcher": []
}
]
}
36 changes: 36 additions & 0 deletions EventLogMonitor.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1AAD5DB6-6B6A-4389-B3D5-BA1AFA0493DD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventLogMonitor", "src\EventLogMonitor\EventLogMonitor.csproj", "{EC6C0C45-7884-465B-A656-F56B3D9BA316}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{8F3C2DF1-3BC6-45BD-9F52-88BF3AD419F2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventLogMonitorTests", "test\EventLogMonitorTests\EventLogMonitorTests.csproj", "{0E0237E3-85FD-4D63-A44C-38D9AC20CEEB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EC6C0C45-7884-465B-A656-F56B3D9BA316}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EC6C0C45-7884-465B-A656-F56B3D9BA316}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC6C0C45-7884-465B-A656-F56B3D9BA316}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC6C0C45-7884-465B-A656-F56B3D9BA316}.Release|Any CPU.Build.0 = Release|Any CPU
{0E0237E3-85FD-4D63-A44C-38D9AC20CEEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0E0237E3-85FD-4D63-A44C-38D9AC20CEEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E0237E3-85FD-4D63-A44C-38D9AC20CEEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E0237E3-85FD-4D63-A44C-38D9AC20CEEB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{EC6C0C45-7884-465B-A656-F56B3D9BA316} = {1AAD5DB6-6B6A-4389-B3D5-BA1AFA0493DD}
{0E0237E3-85FD-4D63-A44C-38D9AC20CEEB} = {8F3C2DF1-3BC6-45BD-9F52-88BF3AD419F2}
EndGlobalSection
EndGlobal
24 changes: 1 addition & 23 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -174,28 +174,6 @@
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS


APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

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.
Loading

0 comments on commit e071326

Please sign in to comment.