diff --git a/Logging/Logger.cs b/Logging/Logger.cs new file mode 100644 index 0000000..763ccf5 --- /dev/null +++ b/Logging/Logger.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Logging +{ + public class Logger + { + private LogType logType; + private string logfilepath; + public Logger(LogType type) + { + this.logType = type; + this.logfilepath = ""; + } + + public Logger(LogType type, string path) + { + this.logType = type; + this.logfilepath = path; + } + + public void log(string message) + { + switch (this.logType) + { + case LogType.Console: + Console.WriteLine(message); + break; + case LogType.Logfile: + File.WriteAllText(this.logfilepath, message); + break; + } + } + } + + public enum LogType { Console, Logfile } +} diff --git a/Logging/Logging.csproj b/Logging/Logging.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Logging/Logging.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Logging/bin/Debug/net6.0/Logging.deps.json b/Logging/bin/Debug/net6.0/Logging.deps.json new file mode 100644 index 0000000..66720cb --- /dev/null +++ b/Logging/bin/Debug/net6.0/Logging.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "Logging/1.0.0": { + "runtime": { + "Logging.dll": {} + } + } + } + }, + "libraries": { + "Logging/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/Logging/bin/Debug/net6.0/Logging.dll b/Logging/bin/Debug/net6.0/Logging.dll new file mode 100644 index 0000000..94095c3 Binary files /dev/null and b/Logging/bin/Debug/net6.0/Logging.dll differ diff --git a/Logging/bin/Debug/net6.0/Logging.pdb b/Logging/bin/Debug/net6.0/Logging.pdb new file mode 100644 index 0000000..fe13a13 Binary files /dev/null and b/Logging/bin/Debug/net6.0/Logging.pdb differ diff --git a/Logging/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/Logging/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..36203c7 --- /dev/null +++ b/Logging/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] diff --git a/Logging/obj/Debug/net6.0/Logging.AssemblyInfo.cs b/Logging/obj/Debug/net6.0/Logging.AssemblyInfo.cs new file mode 100644 index 0000000..1d8c73b --- /dev/null +++ b/Logging/obj/Debug/net6.0/Logging.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Logging")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Logging")] +[assembly: System.Reflection.AssemblyTitleAttribute("Logging")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/Logging/obj/Debug/net6.0/Logging.AssemblyInfoInputs.cache b/Logging/obj/Debug/net6.0/Logging.AssemblyInfoInputs.cache new file mode 100644 index 0000000..4243dbc --- /dev/null +++ b/Logging/obj/Debug/net6.0/Logging.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +9571c7f7b3346058cb6bbbfaf736b35ba173e41f diff --git a/Logging/obj/Debug/net6.0/Logging.GeneratedMSBuildEditorConfig.editorconfig b/Logging/obj/Debug/net6.0/Logging.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..21521eb --- /dev/null +++ b/Logging/obj/Debug/net6.0/Logging.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,10 @@ +is_global = true +build_property.TargetFramework = net6.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Logging +build_property.ProjectDir = D:\Documents\GitHub\astar\Logging\ diff --git a/Logging/obj/Debug/net6.0/Logging.GlobalUsings.g.cs b/Logging/obj/Debug/net6.0/Logging.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Logging/obj/Debug/net6.0/Logging.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/Logging/obj/Debug/net6.0/Logging.assets.cache b/Logging/obj/Debug/net6.0/Logging.assets.cache new file mode 100644 index 0000000..0aacaf9 Binary files /dev/null and b/Logging/obj/Debug/net6.0/Logging.assets.cache differ diff --git a/Logging/obj/Debug/net6.0/Logging.csproj.AssemblyReference.cache b/Logging/obj/Debug/net6.0/Logging.csproj.AssemblyReference.cache new file mode 100644 index 0000000..3ed120b Binary files /dev/null and b/Logging/obj/Debug/net6.0/Logging.csproj.AssemblyReference.cache differ diff --git a/Logging/obj/Debug/net6.0/Logging.csproj.BuildWithSkipAnalyzers b/Logging/obj/Debug/net6.0/Logging.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/Logging/obj/Debug/net6.0/Logging.csproj.CoreCompileInputs.cache b/Logging/obj/Debug/net6.0/Logging.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..b203435 --- /dev/null +++ b/Logging/obj/Debug/net6.0/Logging.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +ca186b20e9eea9da0579e3d2c6b09b668dcde22a diff --git a/Logging/obj/Debug/net6.0/Logging.csproj.FileListAbsolute.txt b/Logging/obj/Debug/net6.0/Logging.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..9662149 --- /dev/null +++ b/Logging/obj/Debug/net6.0/Logging.csproj.FileListAbsolute.txt @@ -0,0 +1,12 @@ +D:\Documents\GitHub\astar\Logging\bin\Debug\net6.0\Logging.deps.json +D:\Documents\GitHub\astar\Logging\bin\Debug\net6.0\Logging.dll +D:\Documents\GitHub\astar\Logging\bin\Debug\net6.0\Logging.pdb +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\Logging.csproj.AssemblyReference.cache +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\Logging.GeneratedMSBuildEditorConfig.editorconfig +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\Logging.AssemblyInfoInputs.cache +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\Logging.AssemblyInfo.cs +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\Logging.csproj.CoreCompileInputs.cache +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\Logging.dll +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\refint\Logging.dll +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\Logging.pdb +D:\Documents\GitHub\astar\Logging\obj\Debug\net6.0\ref\Logging.dll diff --git a/Logging/obj/Debug/net6.0/Logging.dll b/Logging/obj/Debug/net6.0/Logging.dll new file mode 100644 index 0000000..94095c3 Binary files /dev/null and b/Logging/obj/Debug/net6.0/Logging.dll differ diff --git a/Logging/obj/Debug/net6.0/Logging.pdb b/Logging/obj/Debug/net6.0/Logging.pdb new file mode 100644 index 0000000..fe13a13 Binary files /dev/null and b/Logging/obj/Debug/net6.0/Logging.pdb differ diff --git a/Logging/obj/Debug/net6.0/ref/Logging.dll b/Logging/obj/Debug/net6.0/ref/Logging.dll new file mode 100644 index 0000000..c283370 Binary files /dev/null and b/Logging/obj/Debug/net6.0/ref/Logging.dll differ diff --git a/Logging/obj/Debug/net6.0/refint/Logging.dll b/Logging/obj/Debug/net6.0/refint/Logging.dll new file mode 100644 index 0000000..c283370 Binary files /dev/null and b/Logging/obj/Debug/net6.0/refint/Logging.dll differ diff --git a/Logging/obj/Logging.csproj.nuget.dgspec.json b/Logging/obj/Logging.csproj.nuget.dgspec.json new file mode 100644 index 0000000..24add01 --- /dev/null +++ b/Logging/obj/Logging.csproj.nuget.dgspec.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "restore": { + "D:\\Documents\\GitHub\\astar\\Logging\\Logging.csproj": {} + }, + "projects": { + "D:\\Documents\\GitHub\\astar\\Logging\\Logging.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Documents\\GitHub\\astar\\Logging\\Logging.csproj", + "projectName": "Logging", + "projectPath": "D:\\Documents\\GitHub\\astar\\Logging\\Logging.csproj", + "packagesPath": "C:\\Users\\glax\\.nuget\\packages\\", + "outputPath": "D:\\Documents\\GitHub\\astar\\Logging\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\glax\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Logging/obj/Logging.csproj.nuget.g.props b/Logging/obj/Logging.csproj.nuget.g.props new file mode 100644 index 0000000..a2bea9e --- /dev/null +++ b/Logging/obj/Logging.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\glax\.nuget\packages\ + PackageReference + 6.1.0 + + + + + \ No newline at end of file diff --git a/Logging/obj/Logging.csproj.nuget.g.targets b/Logging/obj/Logging.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/Logging/obj/Logging.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Logging/obj/Release/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/Logging/obj/Release/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..36203c7 --- /dev/null +++ b/Logging/obj/Release/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] diff --git a/Logging/obj/Release/net6.0/Logging.AssemblyInfo.cs b/Logging/obj/Release/net6.0/Logging.AssemblyInfo.cs new file mode 100644 index 0000000..d12a136 --- /dev/null +++ b/Logging/obj/Release/net6.0/Logging.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Logging")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Logging")] +[assembly: System.Reflection.AssemblyTitleAttribute("Logging")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/Logging/obj/Release/net6.0/Logging.AssemblyInfoInputs.cache b/Logging/obj/Release/net6.0/Logging.AssemblyInfoInputs.cache new file mode 100644 index 0000000..5fb592d --- /dev/null +++ b/Logging/obj/Release/net6.0/Logging.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +7a5c8249b1904df4522dbda5c0a0ef884f23e36e diff --git a/Logging/obj/Release/net6.0/Logging.GeneratedMSBuildEditorConfig.editorconfig b/Logging/obj/Release/net6.0/Logging.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..21521eb --- /dev/null +++ b/Logging/obj/Release/net6.0/Logging.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,10 @@ +is_global = true +build_property.TargetFramework = net6.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Logging +build_property.ProjectDir = D:\Documents\GitHub\astar\Logging\ diff --git a/Logging/obj/Release/net6.0/Logging.GlobalUsings.g.cs b/Logging/obj/Release/net6.0/Logging.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Logging/obj/Release/net6.0/Logging.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/Logging/obj/Release/net6.0/Logging.assets.cache b/Logging/obj/Release/net6.0/Logging.assets.cache new file mode 100644 index 0000000..5b0b995 Binary files /dev/null and b/Logging/obj/Release/net6.0/Logging.assets.cache differ diff --git a/Logging/obj/Release/net6.0/Logging.csproj.AssemblyReference.cache b/Logging/obj/Release/net6.0/Logging.csproj.AssemblyReference.cache new file mode 100644 index 0000000..3ed120b Binary files /dev/null and b/Logging/obj/Release/net6.0/Logging.csproj.AssemblyReference.cache differ diff --git a/Logging/obj/project.assets.json b/Logging/obj/project.assets.json new file mode 100644 index 0000000..90d8284 --- /dev/null +++ b/Logging/obj/project.assets.json @@ -0,0 +1,67 @@ +{ + "version": 3, + "targets": { + "net6.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net6.0": [] + }, + "packageFolders": { + "C:\\Users\\glax\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Documents\\GitHub\\astar\\Logging\\Logging.csproj", + "projectName": "Logging", + "projectPath": "D:\\Documents\\GitHub\\astar\\Logging\\Logging.csproj", + "packagesPath": "C:\\Users\\glax\\.nuget\\packages\\", + "outputPath": "D:\\Documents\\GitHub\\astar\\Logging\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\glax\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Logging/obj/project.nuget.cache b/Logging/obj/project.nuget.cache new file mode 100644 index 0000000..dd6b401 --- /dev/null +++ b/Logging/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "Bzeus1xpcjAcNWDy36kGNhprv48erGRpIqHoE/JJcwEjtHdQo4AJeMidy4DLd/gjVjMusBQkfWxQ4lF0iNKdjw==", + "success": true, + "projectFilePath": "D:\\Documents\\GitHub\\astar\\Logging\\Logging.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file