tester pushed
This commit is contained in:
19
code/portaloggy.Tester/Program.cs
Normal file
19
code/portaloggy.Tester/Program.cs
Normal file
@ -0,0 +1,19 @@
|
||||
namespace portaloggy.Tester
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var logger = new ConsoleLogger() { IsTraceOutputEnabled = true };
|
||||
|
||||
logger.Info("Hello World!");
|
||||
logger.Warning("This is a warning.");
|
||||
logger.Error("This is an error without any exception.");
|
||||
logger.Error("This is an error with exception.", new ArgumentException("Exception message."));
|
||||
logger.Debug("This is a debug message.");
|
||||
logger.Trace("This is a trace message.");
|
||||
|
||||
// dotnet nuget push "C:\Git\portaloggy\code\portaloggy\bin\Debug\portaloggy.1.0.2.nupkg" -s https://bagetter.masita.net/v3/index.json -k nikdysenebavtespolicii
|
||||
}
|
||||
}
|
||||
}
|
||||
14
code/portaloggy.Tester/portaloggy.Tester.csproj
Normal file
14
code/portaloggy.Tester/portaloggy.Tester.csproj
Normal file
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\portaloggy\portaloggy.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user