summaryrefslogtreecommitdiff
path: root/log.lp
diff options
context:
space:
mode:
Diffstat (limited to 'log.lp')
-rw-r--r--log.lp6
1 files changed, 2 insertions, 4 deletions
diff --git a/log.lp b/log.lp
index 83aab96..9333a0f 100644
--- a/log.lp
+++ b/log.lp
@@ -12,9 +12,7 @@ This file contains a simple logging function. It is a modified version of the ex
@: 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/.
+// 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.
@@ -52,7 +50,7 @@ First the comparison against the severity threshold is made. (A lower integer va
if (@enumToInt(level) > @enumToInt(log_level)) return;
@.
-Next the message string is created. The unformatted content of this string is evaluated at compile-time, before being formatted by the print function at runtime. The "info" and "error" log levels use custom names, whereas all other levels use their default display names.
+Next the message string is created. The unformatted content of this string is evaluated at compile time, before being formatted by the print function at runtime. The 'info' and 'error' log levels use custom names, whereas all other levels use their default display names.
@: Define message string
const msg = "[" ++ switch (level) {