From 95394b59567fc0a2ef54617034c5bfad2c11cef0 Mon Sep 17 00:00:00 2001 From: Fireball5939 <111195856+Fireball5939@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:49:44 -0500 Subject: [PATCH] DOCUMENTATION: Improve ns.enableLog() docs to remove a missleading description (#1634) Changed ns.enableLog documentation to be very similar to ns.disableLog, to remove possible confusion that it only undoes the effects of ns.disableLog --- markdown/bitburner.ns.enablelog.md | 4 +++- src/ScriptEditor/NetscriptDefinitions.d.ts | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/markdown/bitburner.ns.enablelog.md b/markdown/bitburner.ns.enablelog.md index 4ec95da5a..33a8aace9 100644 --- a/markdown/bitburner.ns.enablelog.md +++ b/markdown/bitburner.ns.enablelog.md @@ -26,7 +26,9 @@ void RAM cost: 0 GB -Re-enables logging for the given function. If `ALL` is passed into this function as an argument, it will revert the effect of disableLog("ALL"). +Logging can be enabled for all functions by passing `ALL` as the argument. + +For specific interfaces, use the form "namespace.functionName". (e.g. "ui.setTheme") ## Example diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 4cd98d5ea..63cece4b5 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -6168,8 +6168,9 @@ export interface NS { * @remarks * RAM cost: 0 GB * - * Re-enables logging for the given function. If `ALL` is passed into this function as an argument, it will revert the - * effect of disableLog("ALL"). + * Logging can be enabled for all functions by passing `ALL` as the argument. + * + * For specific interfaces, use the form "namespace.functionName". (e.g. "ui.setTheme") * * @example * ```js