batocera-ES-onArch

Emulationstation from batocera with configs and scripts for integration as Arch-Linux package

This project is maintained by GB609

/opt/batocera-emulationstation/node_modules/logger.js

Overview

This package contains generic console/file printing utilities. All output must go over this module to ensure it can be configured and captured in tests correctly. There should be no raw access to console anywhere else in the productive code, with very few exceptions if it can absolutely not be avoided, e.g. because of dependency order issues etc.

Index

class Logger

Handles everything related to logging and output on console. Wherever possible, output should be produced by using one of the methods defined on Logger. This allows to uniformly control it and also capture it in tests.

Logger.configureGlobal

Change the default logging configuration for all module loggers that don’t give more specific configuration during creation.

See also

Logger.for

[@return {Logger} logger instance]

Logger.userOnly

force output on stderr to print message not obstructing api output, visible to the user only

Logger.apiOut

Force string to output on console stdout

Logger.setTargetConsole

Allows to overwrite the Console instance used for stdout and stderr

Generated with shdoc from /opt/batocera-emulationstation/node_modules/logger.js