diff --git a/examples/complex.ts b/examples/complex.ts index 4c60662..479589e 100644 --- a/examples/complex.ts +++ b/examples/complex.ts @@ -8,9 +8,14 @@ import { const logger = createLogger({ minimumLevel: LogLevel.INFO, - sinks: [consoleSink] // This is the default, but shown here for completeness - }); + sinks: [consoleSink], // This is the default, but shown here for completeness +}); logger.debug("Debug"); // Ignored due to the minimumLevel logger.info("This is {type} logging in {program}", "Structured", "Deno"); -logger.warning("Numbers work: {number} as well as arrays: {arr}", 1, ["a","b","c"]); + +// It doesn't matter what these variables are called, +const num = 1; +const array = ["a", "b", "c"]; + +logger.warning("Numbers work: {number} as well as arrays: {arr}", num, array); diff --git a/examples/simple.ts b/examples/simple.ts index c1e200a..116a76d 100644 --- a/examples/simple.ts +++ b/examples/simple.ts @@ -8,4 +8,4 @@ logger.debug("Debug"); logger.info("Info"); logger.warning("Warning"); logger.error("Error"); -logger.critical("Critical"); \ No newline at end of file +logger.critical("Critical");