mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Merge pull request #103 from notzippy/log-update
Updated skeleton to added critical.
This commit is contained in:
@@ -39,7 +39,7 @@ func Build(buildFlags ...string) (app *App, compileError *revel.Error) {
|
||||
|
||||
// Add the db.import to the import paths.
|
||||
if dbImportPath, found := revel.Config.String("db.import"); found {
|
||||
sourceInfo.InitImportPaths = append(sourceInfo.InitImportPaths, dbImportPath)
|
||||
sourceInfo.InitImportPaths = append(sourceInfo.InitImportPaths, strings.Split(dbImportPath,",")...)
|
||||
}
|
||||
|
||||
// Generate two source files.
|
||||
|
||||
@@ -95,7 +95,7 @@ i18n.default_language = en
|
||||
# Module to serve static content such as CSS, JavaScript and Media files
|
||||
# Allows Routes like this:
|
||||
# `Static.ServeModule("modulename","public")`
|
||||
module.static=github.com/revel/modules/static
|
||||
module.static = github.com/revel/modules/static
|
||||
|
||||
|
||||
|
||||
@@ -172,6 +172,7 @@ module.testrunner = github.com/revel/modules/testrunner
|
||||
# Log to file.
|
||||
log.all.filter.module.app = stdout # Log all loggers for the application to the stdout
|
||||
log.error.nfilter.module.app = stderr # Everything else that logs an error to stderr
|
||||
log.crit.output = stderr # Everything that logs something as critical goes to this
|
||||
|
||||
# Revel request access log
|
||||
# Access log line format:
|
||||
@@ -196,8 +197,9 @@ watch = false
|
||||
|
||||
module.testrunner =
|
||||
|
||||
log.warn.output = log/%(app.name)s.log # Log all loggers for the application to the stdout
|
||||
log.error.output = log/%(app.name)s.log # Log all errors to the stdout
|
||||
log.warn.output = log/%(app.name)-warn.json # Log all warn messages to file
|
||||
log.error.output = log/%(app.name)-error.json # Log all errors to file
|
||||
log.crit.output = log/%(app.name)-critical.json # Log all critical to file
|
||||
|
||||
# Revel request access log (json format)
|
||||
# Example:
|
||||
|
||||
Reference in New Issue
Block a user