2.0.0 • Published 7 years ago

dwlogs v2.0.0

Weekly downloads
4
License
ISC
Repository
bitbucket
Last release
7 years ago

dwlogs

Retrieve log files from Demandware sandbox

Installation

:; npm install dwlogs

Usage

:; 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 100

If a type option is not present, it will list all the log files instead.

Options

  • hostname: sandbox URL (without the https://)
  • username and password: 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. See Date/dateString
  • list || 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.

2.0.0

7 years ago

1.4.0

7 years ago

1.3.0

9 years ago