logging
logging(
options?):PipelineBehaviorTuple<LoggingBehavior,LoggingBehaviorOptions>
Defined in: packages/pipeline/src/helpers/logging.intent.ts:23
Returns a logging behavior entry for pipeline.wrap() or createPipeline({ globalBehaviors }).
Parameters
Section titled “Parameters”options?
Section titled “options?”Per-handler logging options; omitted fields use behavior defaults.
Returns
Section titled “Returns”PipelineBehaviorTuple<LoggingBehavior, LoggingBehaviorOptions>
The behavior class and options tuple.
Example
Section titled “Example”export const getPrice = pipeline.wrap( { name: 'getPrice', kind: 'query' }, logging({ requestResponseLogLevel: 'log' }),)(async (sku: string) => prices.find(sku));