<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Appsettings not app.config ? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-appsettings-not-app-config/m-p/11572657#M15622</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13158483"&gt;@a.burgaudeau&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that this discussion forum is dedicated to programming Revit using the Revit API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to clearly understand your question but if you want to split your log data into different files, you can try to read here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0" target="_blank"&gt;https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also use serilog package to achieve the same result as explained here&amp;nbsp;&lt;A href="https://github.com/serilog/serilog" target="_blank"&gt;https://github.com/serilog/serilog&lt;/A&gt;&amp;nbsp;with a simple log splitting example here&amp;nbsp;&lt;A href="https://vmsdurano.com/serilog-and-asp-net-core-split-log-data-using-filterexpression/" target="_blank"&gt;https://vmsdurano.com/serilog-and-asp-net-core-split-log-data-using-filterexpression/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 11:28:05 GMT</pubDate>
    <dc:creator>moturi.magati.george</dc:creator>
    <dc:date>2022-11-23T11:28:05Z</dc:date>
    <item>
      <title>Get Appsettings not app.config ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-appsettings-not-app-config/m-p/11550518#M15621</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;I want to setup a logging service with Configuration file. With&amp;nbsp; Microsoft we must used inject dependency...&lt;/P&gt;&lt;P&gt;To do that I need "Getsection" in the AppSettings.json.&lt;/P&gt;&lt;P&gt;I follow this page : &lt;A href="https://www.roundthecode.com/dotnet/create-your-own-logging-provider-to-log-to-text-files-in-net-core" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ServicesBuilder :&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            services.AddLogging(loggingBuilder =&amp;gt;
            {
                loggingBuilder.CodeFileLogger(options =&amp;gt;
                {
                    Configuration.GetSection("Logging").GetSection("CodeFile").GetSection("Options")
                        .Bind(options);
                });
            });&lt;/LI-CODE&gt;&lt;P&gt;AppSettings :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    },
    "CodeFile": {
      "Options": {
        "FolderPath": "Logs",
        "FilePath": "log_{date}.log"
      },
      "LogLevel": {
        "Default": "Debug",
        "System": "Information",
        "Microsoft": "Information",
        "LicenceManager.API.Controllers.Controllers": "Information",
        "LicenceManager.API.Controllers.Services": "Information"
      }
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 09:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-appsettings-not-app-config/m-p/11550518#M15621</guid>
      <dc:creator>a.burgaudeau</dc:creator>
      <dc:date>2022-11-14T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Appsettings not app.config ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-appsettings-not-app-config/m-p/11572657#M15622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13158483"&gt;@a.burgaudeau&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that this discussion forum is dedicated to programming Revit using the Revit API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to clearly understand your question but if you want to split your log data into different files, you can try to read here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0" target="_blank"&gt;https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also use serilog package to achieve the same result as explained here&amp;nbsp;&lt;A href="https://github.com/serilog/serilog" target="_blank"&gt;https://github.com/serilog/serilog&lt;/A&gt;&amp;nbsp;with a simple log splitting example here&amp;nbsp;&lt;A href="https://vmsdurano.com/serilog-and-asp-net-core-split-log-data-using-filterexpression/" target="_blank"&gt;https://vmsdurano.com/serilog-and-asp-net-core-split-log-data-using-filterexpression/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 11:28:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-appsettings-not-app-config/m-p/11572657#M15622</guid>
      <dc:creator>moturi.magati.george</dc:creator>
      <dc:date>2022-11-23T11:28:05Z</dc:date>
    </item>
  </channel>
</rss>

