@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
pnpm add @fougere/log
bun add @fougere/log
yarn add @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 | |
|---|---|
FileHandler | One JSON object per line, appended to a file — the shape a collector tails. |
LogFile | Where the lines land, and the only thing this destination is configured with. |
callLines | Two lines a call, that it began and what it cost, under the frond that answers. |
logFrond | |
log |