Simple real time logging app for demandware. Currently starts watching for log updates (Nodejs) and streams updates (rxjs / angular2) in a spartain bootstrap table. Creature comforts include css hilighting for new items and dynamic checkboxes for logs to monitor.
First you will need to create a config.json file to hold your account info in the root directory:
{
"username": "uber",
"password": "leet",
"dwUrl": "https://dev32-web-instance.demandware.net"
}
- run
npm install
- update config.json
username
,password
, anddwUrl
to not be so leet. - run
node logger.js
The Taco bell version probally looks something like this with watch and multitail... But where is the fun in that?
#!/bin/bash
wget=/usr/bin/wget
BASE_URL="https://dev32-web-instance.demandware.net"
WGET_OPTS='--user=uber --password=leet'
DAY=`/bin/date +%Y%m%d`
$wget -Nc -r -nH -nd -np -e robots=off -A "*${DAY}*.log" ${WGET_OPTS} "${BASE_URL}/on/demandware.servlet/webdav/Sites/Logs" -P logs