Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.87 KB

cmd-log.md

File metadata and controls

62 lines (43 loc) · 1.87 KB

Logo

↤ Developer Overview

sfcc log

Stream/Search log files from an instance

demo

If you only have a single project, you can run:

sfcc log

If needed to setup multiple clients, or multiple instances for the same client, you will need to specify what to use:

sfcc log <client> <instance>

FLAGS:

Name Param Default Definition
Polling -p 2 Polling Interval ( in Seconds )
Lines -l 100 Number of Existing Lines to Display
Include -i Log Types to Include ( use sfcc log --list for list )
Exclude -e Log Types to Exclude ( use sfcc log --list for list )
Filter -f Filter Log Messages that contain this string or RegExp
Truncate -t Length to Truncate Messages ( if they are too long )
List --list Output List of Log Types for -i & -e
Search --search false Search Logs with no Live Updates
Latest --latest false Show Latest Logs Only ( default is to use ALL logs )

ADVANCED USE:

Get current list of log types:

sfcc log --list

Watch latest customerror logs that contain the text PipelineCallServlet:

sfcc log -i customerror -l 5 -f PipelineCallServlet --latest

View any warn,error logs that contain a matching [0-9]{15} RegExp pattern, and watch for new entries:

sfcc log -i warn,error -f '[0-9]{15}'

Search all latest existing logs except staging,syslog that contain either WARN|ERROR RegExp pattern:

sfcc log -e staging,syslog -f 'WARN|ERROR' --search --latest