Skip to content

Commit

Permalink
fixed default float formatting for displaying elapsed miliseconds.
Browse files Browse the repository at this point in the history
Bump to 0.2.2
  • Loading branch information
migajek committed Jan 5, 2024
1 parent 298da1e commit a98cd70
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ private static async Task PlainSample()

## Chanelog

* 0.2.2 fixed default float formatting for displaying elapsed miliseconds
* 0.2.1 first public release
5 changes: 4 additions & 1 deletion src/PicoProfiler.Logging/PicoProfiler.Logging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
<PackageTags>PicoProfiler;Profiler;Pico;Logging;Micro;Profiling;Lightweight;Performance</PackageTags>
<PackageProjectUrl>https://github.com/migajek/PicoProfiler</PackageProjectUrl>
<Description>Integrates PicoProfiler with Microsoft.Extensions.Logging</Description>
<Version>0.2.1</Version>
<Version>0.2.2</Version>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class LoggerOutputConfiguration
public LogLevel DefaultLogLevel { get; set; }= LogLevel.Information;

public LoggerMessageFactoryWithActionName DefaultActionMessageFactory =
(actionName, time) => ("{ActionName} finished in {ElapsedMilliseconds:.##} ms",
(actionName, time) => ("{ActionName} finished in {ElapsedMilliseconds:0.##} ms",
new object[] { actionName, time.TotalMilliseconds });

private LoggerOutputConfiguration()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ private ConsoleOutputConfiguration()
}

public ConsoleMessageFactoryWithActionName DefaultMessageFactory { get; set; }
= (actionName, elapsedTime) => $"{actionName} finished in {elapsedTime.TotalMilliseconds:.##} ms";
= (actionName, elapsedTime) => $"{actionName} finished in {elapsedTime.TotalMilliseconds:0.##} ms";
}
5 changes: 4 additions & 1 deletion src/PicoProfiler/PicoProfiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
<PackageTags>PicoProfiler;Profiler;Pico;Micro;Profiling;Lightweight;Peformance</PackageTags>
<PackageProjectUrl>https://github.com/migajek/PicoProfiler</PackageProjectUrl>
<Description>Tiny abstraction layer over Stopwatch, leveraging IDisposable and enabling using pattern usage</Description>
<Version>0.2.1</Version>
<Version>0.2.2</Version>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

</Project>

0 comments on commit a98cd70

Please sign in to comment.