a65559fa96
1. use our own log4j.properties file instead of having grails auto-generate one 2. modify web.xml template to use spring's log4config listener instead of grail's one 3. remove duplicate slf4j library 4. leave log4j DSL in Config.groovy to enable logging when developing and running "grails run-war" 5. log is written to /var/log/bigbluebutton/bbb-web.log git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@3231 af16638f-c34d-0410-8cfa-b39d5352b314
36 lines
1.7 KiB
Groovy
36 lines
1.7 KiB
Groovy
/*
|
|
* BigBlueButton - http://www.bigbluebutton.org
|
|
*
|
|
* Copyright (c) 2008-2009 by respective authors (see below). All rights reserved.
|
|
*
|
|
* BigBlueButton is free software; you can redistribute it and/or modify it under the
|
|
* terms of the GNU Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 3 of the License, or (at your option) any later
|
|
* version.
|
|
*
|
|
* BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License along
|
|
* with BigBlueButton; if not, If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* $Id: $
|
|
*/
|
|
|
|
// This closure is to enable logging in production.
|
|
// This closure is passed the location of the staging directory that
|
|
// is zipped up to make the WAR file, and the command line arguments.
|
|
// Here we copy over oug log4j.properties file while the web.xml is
|
|
// overridden from what's in src/templates/war/web.xml.
|
|
// (ralam, jan 7, 2010)
|
|
grails.war.resources = {stagingDir, args ->
|
|
//println '*** Copying our custom web.xml and log4j.properties as workaround for logging problem. ***'
|
|
//println '*** Copying our custom web.xml as workaround for logging problem. ***'
|
|
//copy(file: "grails-app/conf/custom-web.xml", tofile: "${stagingDir}/WEB-INF/web.xml")
|
|
println '*** Copying our custom log4j.properties as workaround for logging problem. ***'
|
|
copy(file: "grails-app/conf/log4j.properties", tofile: "${stagingDir}/WEB-INF/classes/log4j.properties")
|
|
}
|
|
|
|
|