hugo/common/herrors
Bjørn Erik Pedersen 1ad117cbe2 common/herrors: Make the file error log format configurable
Will check for an OS environment variable named `HUGO_FILE_LOG_FORMAT`.

The tokens available are `:file` (absolute filename), `:line` (line number) and `:col` (column number).

The default format is: \":file::line::col\"`

How to set OS environment variables is OS specific, but an example on Unix setting an alternative format when running Hugo:

```bash
env HUGO_FILE_LOG_FORMAT="\":file::line\"" hugo
```

The above will include filename and line number quoted.

Fixes #5352
2018-10-27 19:14:16 +02:00
..
error_locator.go common/herrors: Make the file error log format configurable 2018-10-27 19:14:16 +02:00
error_locator_test.go common/herrors: Make the file error log format configurable 2018-10-27 19:14:16 +02:00
errors.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
file_error.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
file_error_test.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
line_number_extractors.go hugolib: Improve errors in /i18n handlling 2018-10-22 20:46:14 +02:00