{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4247,"path":"build-workflows/workflow-studio/log-message-flow-designer.md","title":"Log action","bundle":null,"doc_type":null,"release":"australia","body":"\n# Log action\n\nLogs a message in the Workflow Studio log table sys\\_flow\\_log.\n\n## Roles and availability\n\nAvailable as a Workflow Studio ServiceNow core action. Users with the flow\\_designer or admin role can add an action to a flow and define configuration details.\n\nYou can view the logs in the flow execution details. To learn more, see [Flow execution details](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/flow-execution-details.md) and [Data pills](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/data-population.md).\n\n## Fields\n\n<table id=\"table_fzt_n55_3cb\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nLog level\n\n</td><td>\n\nLevel of importance of the log message.-   Error\n-   Warn\n-   Info\n\n</td></tr><tr><td>\n\nLog message\n\n</td><td>\n\nMessage to display in the Flow log \\[sys\\_flow\\_log\\] table. Enter text or drag data pills into the field. **Note:** The Workflow Studio design environment only supports entering 255 characters of text for a log message. The length limitation only applies to text entered directly into the input. Data pill values can exceed 255 characters in length. You can log values greater than 255 characters long by using either a data pill value or calling the [GlideSystem - log\\(String message, String source\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/server-api-reference/c_GlideSystemAPI.md) method from a script.\n\n</td></tr></tbody>\n</table>## General guidelines\n\n-   **Test your flow to ensure it generates useful logging information**\n\n    Test your flow and review its execution details. Make sure that the log action stores useful data.\n\n-   **Use data pills to log dynamic data**\n\n    Add one or more data pills to your Log action to store dynamically generated values. Make sure that the data pills come from actions and flow logic that have run before the Log action.\n\n\n**Parent Topic:**[Workflow Studio actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/flow-actions.md)\n\n"}}