Ignore:
Timestamp:
Feb 16, 2010, 9:01:07 AM (14 years ago)
Author:
gav
Message:

Added an application log view.
Reduced log file size and added CSS and JavaScript? to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AppCoreController.groovy

    r318 r358  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
     2import org.codehaus.groovy.grails.commons.*
    23
    34/**
     
    193194    }
    194195
     196    /**
     197    * Render the application log file.
     198    */
     199    @Secured(['ROLE_AppAdmin'])
     200    def appLog = {
     201        def file = new File(ConfigurationHolder.config.log4j.appenders.appLog.file)
     202
     203        // Success.
     204        [log: file.text]
     205    }
     206
    195207} // end of class.
Note: See TracChangeset for help on using the changeset viewer.