First, let’s introduce the environment and the wrapper used, that is, use Hugo in a nodejs-related way, so I don’t understand many situations.
Recently, I found that the hugo command line did not generate a log file.
Not sure what the reason is, because it has been updated frequently recently.
This option is generally used, and a real-time log file is generated in the root directory of the project, because sometimes the content of my console is lost after switching the size. So almost all commands use Hugo’s log parameter, and there was no problem not long ago. Not sure what went wrong. No log files have been debugged, nor any related error prompts.
gohugo.io/commands/hugo
gohugo.io/commands/hugo_server/#options-inherited-from-parent-commands
--log enable Logging --logFile string log File path (if set, logging enabled automatically)
"hugo--build": "hugo --gc",
"hugo--build:watch": "hugo -e production --gc --watch --log",
"hugo--build:watch:debug": "hugo -e production --gc --watch --log --debug",
"hugo--dev": "hugo -e development --gc --log",
"hugo--dev:watch": "hugo -e development --gc --watch --log",
"hugo--dev:watch:debug": "hugo -e development --gc --watch --log --debug",
"hugo-server:production": "hugo server -e production --gc --watch --log",
"hugo-server:development": "hugo server -e development --gc --watch --log",