@xtandard/flags/hooks/log
Log hook: createLogHook logs every admin mutation (an after hook). A
starting point for your own side effects. No dependencies.
Entry point for the @xtandard/flags/hooks/log subpath export.
import { … } from "@xtandard/flags/hooks/log";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createLogHook |
Build a hook that logs each mutation event. Never throws from before, so it never denies a mutation — it is a pure observer. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
LogHookOptions |
Options for createLogHook: log (default console.log), includeBefore, json (one JSON object per line) and format. The default line is [@xtandard/flags] <phase> <type> <project>/<env> <JSON payload>. |