Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 0dc82b7

Browse files
author
Lilleman
committed
Improved README for custom logging function
1 parent 405982b commit 0dc82b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ http.createServer(app).listen(3000);
103103
* `error` - A function to be called when something goes wrong.
104104
* `force` - `[true | false]`, false by default. Always re-compile.
105105
* `indentedSyntax` - `[true | false]`, false by default. If true compiles files with the `.sass` extension instead of `.scss` in the `src` directory.
106-
* `log` - `function(severity, key, val)`, used to log data instead of the default `console.error`
106+
* `log` - `function(severity, key, val, message)`, used to log data instead of the default `console.error`. "severity" matches [Winston](https://www.npmjs.com/package/winston) severity levels.
107107
* `maxAge` - MaxAge to be passed in Cache-Control header.
108108
* `prefix` - (String) It will tell the sass middleware that any request file will always be prefixed with `<prefix>` and this prefix should be ignored.
109109
* `response` - `[true | false]`, true by default. To write output directly to response instead of to a file.

0 commit comments

Comments
 (0)