Issue Details (XML | Word | Printable)

Key: GRAILS-3749
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Sergey Nebolsin
Reporter: Nick Atkins
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Console appender does not work as expected

Created: 23/Dec/08 05:11 PM   Updated: 06/Jan/09 05:38 PM
Component/s: Configuration
Affects Version/s: 1.1-beta2
Fix Version/s: 1.1-beta3

Time Tracking:
Not Specified

Environment: Mac OS X, Linux


 Description  « Hide
According to the documentation one should be able to define a consoleAppender like so:
log4j = {
appenders {
      console name:'consoleAppender', layout:pattern(conversionPattern: '%d{ISO8601} %-5p [%c{2}] %m%n')
}
debug  consoleAppender:'grails.app'
}

However doing this results in the following error:

log4j:ERROR No output stream or file set for the appender named
[consoleAppender].

Graeme suggested a work-around:

appenders {
  def appender = console( name:'consoleAppender',
           layout:pattern(conversionPattern: '%d{ISO8601} %-5p [%c{2}] %m%n'))
   appender.activateOptions()
}

and while that does indeed remove the error the conversionPattern is not honored (possibly a separate bug)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Sergey Nebolsin added a comment - 06/Jan/09 05:38 PM
Fixed in rev. 8048.