diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-08 17:45:50 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-08 17:45:50 -0400 |
commit | 2e0bc5ddfe90102fe5adbc90b2d53c5cbb8405fe (patch) | |
tree | 06de5bccbebb606928d70c88e0aab80d8c6addf8 /src/SMAPI/Framework/Logging/LogOnceCacheKey.cs | |
parent | 40d5cd7c05d4e0a4e6894cd7b9f6d7d747716837 (diff) | |
download | SMAPI-2e0bc5ddfe90102fe5adbc90b2d53c5cbb8405fe.tar.gz SMAPI-2e0bc5ddfe90102fe5adbc90b2d53c5cbb8405fe.tar.bz2 SMAPI-2e0bc5ddfe90102fe5adbc90b2d53c5cbb8405fe.zip |
tweak new code
Diffstat (limited to 'src/SMAPI/Framework/Logging/LogOnceCacheKey.cs')
-rw-r--r-- | src/SMAPI/Framework/Logging/LogOnceCacheKey.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Logging/LogOnceCacheKey.cs b/src/SMAPI/Framework/Logging/LogOnceCacheKey.cs new file mode 100644 index 00000000..4d31ffeb --- /dev/null +++ b/src/SMAPI/Framework/Logging/LogOnceCacheKey.cs @@ -0,0 +1,10 @@ +using System.Diagnostics.CodeAnalysis; + +namespace StardewModdingAPI.Framework.Logging +{ + /// <summary>The cache key for the <see cref="Monitor.LogOnceCache"/>.</summary> + /// <param name="Message">The log message.</param> + /// <param name="Level">The log level.</param> + [SuppressMessage("ReSharper", "NotAccessedPositionalProperty.Local", Justification = "This is only used as a lookup key.")] + internal readonly record struct LogOnceCacheKey(string Message, LogLevel Level); +} |