Skip to content

Commit

Permalink
Logger: removed toggleSTDOut method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuminski committed Jul 4, 2024
1 parent 7219a1b commit 84d0070
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,22 +256,11 @@ export const listen = (fn) => {
logging.listeners.push(fn);
};

/**
* Toggles the standard output (console) logging.
*
* @param {boolean} enabled - If true, enables console logging; if false,
* disables it.
*/
export const toggleSTDOut = (enabled) => {
logging.toConsole = enabled;
};

export default {
log,
logWithStack,
setLogLevel,
enableFileLogging,
initLogging,
listen,
toggleSTDOut
listen
};

0 comments on commit 84d0070

Please sign in to comment.