From fcd667a0ebe73a7868e93232faea36d56535be18 Mon Sep 17 00:00:00 2001 From: eudoxia Date: Mon, 2 May 2022 12:37:11 -0400 Subject: reorganised docs locations (doc/* -> doc/online/*, doc/freestanding/* -> doc/*) --- doc/log.html | 64 ++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 30 deletions(-) mode change 100755 => 100644 doc/log.html (limited to 'doc/log.html') diff --git a/doc/log.html b/doc/log.html old mode 100755 new mode 100644 index 59e9627..3e32826 --- a/doc/log.html +++ b/doc/log.html @@ -3,37 +3,49 @@ - - - - - - -log.lp — DistressNetwork° - + + -
-
-
log.lp
-
+

log.lp

This file contains a simple logging function. It is a modified version of the example logging function implementation provided in std.log.

*:

-
(License)
+
(License)
 
-(Imports)
+(Imports)
 
-(Level setting)
+(Level setting)
 
-(Logging function)
+(Logging function)
 

License:

-
// Copyright 2022 DistressNetwork° <uplink@distress.network>
-// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
+
// Copyright 2022 DistressNetwork° <uplink@distress.network>
+// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
 

We first import the standard library, and the Level type which is an enum representing the possible log levels.

@@ -60,11 +72,11 @@ const Level = std.log.Level; comptime format: []const u8, args: anytype, ) void { - (Compare with level threshold) + (Compare with level threshold) - (Define message string) + (Define message string) - (Print to console) + (Print to console) }
@@ -93,13 +105,5 @@ const Level = std.log.Level;
const stderr = std.io.getStdErr().writer();
 nosuspend stderr.print(msg, args) catch return;
 
-
- -
- - + \ No newline at end of file -- cgit v1.2.3