diff options
Diffstat (limited to 'software/literary/log.html')
-rwxr-xr-x | software/literary/log.html | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/software/literary/log.html b/software/literary/log.html index c2bffff..9ebf2dc 100755 --- a/software/literary/log.html +++ b/software/literary/log.html @@ -9,33 +9,24 @@ <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png"> <link rel="manifest" href="/favicon/site.webmanifest"> -<script src="/js/bg.js"></script> -<title></title> -<meta name="description" content="" /> -<meta http-equiv="last-modified" content="" /> +<title>log.lp — DistressNetwork°</title> +<meta http-equiv="last-modified" content="2022-04-01 10:35:03-04:00" /> +<style>h3,.lp-ref {font-family: neue-haas-grotesk-text, var(--fs-sans); font-size: 1rem; font-weight: normal; font-style: italic;} h3 {margin: 1rem;}</style> </head> <body> -<header> -<div class="bomber"></div> -<hr> -<div class="identcontainer"> -<div class="ident"><time datetime=""></time>––––<a href="https://distress.network">DistressNetwork°</a></div> -<img class="headerlogo" src="/media/distressnetwork-b.svg" alt=""> -</div> -</header> <div class="contentlevel"> <main> -<div class="leading"></div> +<div class="leading">log.lp</div> <hr> <p>This file contains a simple logging function. It is a modified version of the example logging function implementation provided in <code>std.log</code>.</p> <h3 id="section">*:</h3> -<pre><code>@= Imports =@ +<pre><code><span class="lp-ref">(Imports)</span> -@= Level setting =@ +<span class="lp-ref">(Level setting)</span> -@= Logging function =@ +<span class="lp-ref">(Logging function)</span> </code></pre> <p>We first import the standard library, and the <code>Level</code> type which is an enum representing the possible log levels.</p> @@ -62,11 +53,11 @@ const Level = std.log.Level; comptime format: []const u8, args: anytype, ) void { - @= Compare with level threshold =@ + <span class="lp-ref">(Compare with level threshold)</span> - @= Define message string =@ + <span class="lp-ref">(Define message string)</span> - @= Print to console =@ + <span class="lp-ref">(Print to console)</span> } </code></pre> |