Log

Log

 

 

In this article

Overview

You can use this Snap to log the desired output to respective file based on the log level.

image-20250528-095709.png

Snap Type

This is a write-type Snap used to write the logs.

Prerequisites

None.

Limitations and Known Issues

None.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

 

  • Min: 0

  • Max: 1

  • Mapper Snap

  • Json Generator

  • Sort Snap

Each document contains data in the JSON format.

Output

Document

  • Min: 0

  • Max: 1

  • Mapper Snap

  • Join Snap

  • CSV Formatter

Each document contains a corresponding response in the JSON format.

Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:

  • Stop Pipeline Execution: Stops the current Pipeline execution if the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

Field Name

Field Type

Description

Field Name

Field Type

Description

Label*

 

Default ValueLog
ExampleLog

String

Specify the name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline.

 

Level*

 

Default ValueMD5
Example: Generic Dataset

String/Expression/Dropdown list

Choose the log level.

Text*

 

Default Value
Example: Hello

String/Expression

Specify the value of the text or map a field whose data is used for writing logs.

Snap Execution

 

Default ValueExecute Only
Example: Validate & Execute

Dropdown list

Select one of the following three modes in which the Snap executes:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.

  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Snap Pack History