theatre/packages
Cole Lawrence 84daaaf94a dev: Add configurable ITheatreLogger
Addresses the lack of options we currently have for surfacing issues in
our application via debugging tools. Prioritizes performance and
usability (visually) over clarity in some places that could have been
object mapped.

A logger with three separate audiences:

 * `internal`: Logs for developers maintaining Theatre.js
 * `dev`: Logs for developers using Theatre.js
 * `public`: Logs for everyone

This logger supports:
 * multiple logging levels (error, warn, debug, trace),
 * multiple audience levels (internal, dev, public),
 * multiple categories (general, todo, troubleshooting)
 * named and keyed loggers (e.g.
   `rootLogger.named("Project", project.id)`)
 * console styling with deterministic coloring
 * console devtool maintains accurate sourcemap link to logging origin
   (e.g. `coreExports.ts:71` as opposed to `logger.ts:45` or whatever)
 * swappable logger
 * customizable filtering
 * Accepts lazy `args`: `args: () => object` via
  `logger.lazy.<level>("message", () => <expensive computation>)` (e.g.
  `logger.lazy.debugDev("Loaded project state", () => ({ save: bigProject.exportToSaveable() }))`)
2022-05-19 16:34:34 -04:00
..
browser-bundles Add tests for Theatre.js + popular setups in the ecosystem (#165) 2022-05-17 20:53:01 +02:00
dataverse Add tests for Theatre.js + popular setups in the ecosystem (#165) 2022-05-17 20:53:01 +02:00
dataverse-experiments More docs 2021-10-05 12:22:43 +02:00
playground dev: Add configurable ITheatreLogger 2022-05-19 16:34:34 -04:00
r3f theatre/r3f: Allow physical lighting in snapshot viewport (#114) 2022-05-19 12:48:59 +02:00
react Add tests for Theatre.js + popular setups in the ecosystem (#165) 2022-05-17 20:53:01 +02:00