Skip to content

Commit

Permalink
add file logging
Browse files Browse the repository at this point in the history
  • Loading branch information
L-C-P committed Jun 19, 2023
1 parent 947491e commit 6f308cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
{
configure.AddSimpleConsole(options => options.TimestampFormat = "[yyyy.MM.dd HH:mm:ss] ");
configure.AddConfiguration(configurationRoot.GetSection("Logging"));
configure.AddFile(configurationRoot.GetSection("Logging"));
});

// Registering the Plugin to the IoC container:
Expand Down
7 changes: 4 additions & 3 deletions TeamsIntegration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@
<Copyright>2023 by Denis Sowa</Copyright>
<Company>Denis Sowa</Company>
<Product>TouchPortal MS Teams Integration</Product>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<AssemblyVersion>1.0.1.1</AssemblyVersion>
<FileVersion>1.0.1.1</FileVersion>
<AssemblyName>TouchPortalTeamsIntegrationPlugin</AssemblyName>
<Version>1.0.0.0</Version>
<Version>1.0.1.1</Version>
<Description>TouchPortal Teams integration plugin</Description>
<PackageProjectUrl>https://github.com/L-C-P</PackageProjectUrl>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="Serilog.Extensions.Logging.File" Version="3.0.0" />
<PackageReference Include="TouchPortalSDK" Version="0.31.0" />
</ItemGroup>

Expand Down
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ cp "Release/net7.0/osx-x64/publish/entry.tp" "TouchPortalTeamsIntegrationPlugin/
zip -q -r "../Touch_Portal_Teams_Integration_Plugin.tpp" "TouchPortalTeamsIntegrationPlugin" -x "*.DS_Store"
rm -R "TouchPortalTeamsIntegrationPlugin"

cd ".."
cd ".."
open .
2 changes: 1 addition & 1 deletion entry.tp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": 7,
"version": 10000,
"version": 10001,
"name": "Teams Integration",
"id": "info.sowa.teams",
"configuration": {
Expand Down

0 comments on commit 6f308cf

Please sign in to comment.