@fougere/log

Logging for Fougere: two lines for every call, in every process, and a file destination for the lines.

Use it

npm install @fougere/log
// fougere.config.ts
export default defineFougere({
  fronds: { '@fougere/log': {} },
});

The key names the package, and every process that reads the config calls its log() export and rises with it. Options that are more than a word go where the extension is built — in a frond's extensions/, or in createApp({ extensions }).

Entries: @fougere/log

What you import

name
FileHandlerOne JSON object per line, appended to a file — the shape a collector tails.
LogFileWhere the lines land, and the only thing this destination is configured with.
callLinesTwo lines a call, that it began and what it cost, under the frond that answers.
logFrond
log
Built with Fougere and Nuxt, hosted on GitHub Pages.