> Source: https://serverfault.com/questions/980571/can-i-delete-access-log-files-in-nginx-will-it-cause-an-issue You can remove access.log as root user, or using sudo. ```sh sudo rm /var/log/nginx/access.log ``` However after deleting it, the file will not be re-created until nginx is re-loaded or re-started. To reload nginx do: ```sh sudo service nginx reload ``` To re-size the file to 0 bytes, without having to re-load or re-start nginx, use the truncate command: ```sh sudo truncate --size 0 /var/log/nginx/access.log ```
> Source: https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color
Below you can find colors reference of text to command when running node.js application:
```js
console.log('\x1b[36m%s\x1b[0m', 'I am cyan'); //cyan
console.log('\x1b[33m%s\x1b[0m', stringToMakeYellow); //yellow
```
Note `%s` is where in the string (the second argument) gets injected. `\x1b[0m` resets the terminal color so it doesn't continue to be the chosen color anymore after this point.
### Colors reference
```js
Reset = "\x1b[0m"
Bright = "\x1b[1m"
Dim = "\x1b[2m"
Underscore = "\x1b[4m"
Blink = "\x1b[5m"
Reverse = "\x1b[7m"
Hidden = "\x1b[8m"
FgBlack = "\x1b[30m"
FgRed = "\x1b[31m"
FgGreen = "\x1b[32m"
FgYellow = "\x1b[33m"
FgBlue = "\x1b[34m"
FgMagenta = "\x1b[35m"
FgCyan = "\x1b[36m"
FgWhite = "\x1b[37m"
BgBlack = "\x1b[40m"
BgRed = "\x1b[41m"
BgGreen = "\x1b[42m"
BgYellow = "\x1b[43m"
BgBlue = "\x1b[44m"
BgMagenta = "\x1b[45m"
BgCyan = "\x1b[46m"
BgWhite = "\x1b[47m"
```