gritter/resources/main/logback.groovy
Jonathan Bernard f616cd9f39 Added many commands, restructured command heirarchy, added functionality.
doc/commands
    a heirarcical view of the commands and their implementation status.
Added logging using logback + slf4j
Fixed a bug with multiple commands and commands using defaults
Changed names from Groovy Twitter CLI to Gritter
Fixed a tet wrapping bug that was occuring when a line contained no spaces.
Command Changes:
    Added delete/destroy/remove
        no implementation as of yet. See doc/commands for details
    Extended get/show
        Added list support (show lists, members of lists, lists the user
        is subscribed to).
    Extended post/add/create
        Added list support (create list, add member to list, subscribe to list)
        Added the ability to retweet a status
2010-11-09 09:26:05 -06:00

20 lines
510 B
Groovy

import ch.qos.logback.classic.encoder.PatternLayoutEncoder
import ch.qos.logback.core.ConsoleAppender
import ch.qos.logback.core.FileAppender
import static ch.qos.logback.classic.Level.*
appender("CONSOLE", ConsoleAppender) {
encoder(PatternLayoutEncoder) {
pattern = "%level %logger - %msg%n"
}
}
appender("FILE", FileAppender) {
file="gritter.log"
encoder(PatternLayoutEncoder) {
pattern = "%level %logger - %msg%n"
}
}
logger("com.jdbernard.twitter", TRACE, ["FILE"])