dwlogs
v2.0.0
Published
Retrieve log files from Demandware server
Readme
dwlogs
Retrieve log files from Demandware sandbox
Installation
:; npm install dwlogsUsage
:; dwlogs --type error --day 'June 16, 2015'To have the logs be more usable, you can pipe them into less, tail or any stdout processing tool you have
:; dwlogs | less
:; dwlogs | tail -n 100If a type option is not present, it will list all the log files instead.
Options
hostname: sandbox URL (without thehttps://)usernameandpassword: credentials to log into your sandbox (should have admin privileges)type||t: type of logs to retrieve. This option is required in order to see the content of a log file.day||d: day of log to retrieve from, default to today. This can be any string that notify a date object. SeeDate/dateStringlist||l: List all log files. They are grouped by name, then sorted by date last modified.
Config file
Instead of passing command line options every single time, you can store your config options in a dw.json file instead. For example:
{
"hostname": "example.demandware.net",
"username": "user",
"password": "password"
}Command line options will always override the options delcared in the config file.
Note: the dw.json file should be .gitignored and not committed to source code.
