Log4j related changes

This commit is contained in:
Greg Richardson 2007-02-22 19:39:55 +00:00
parent 9478044e7b
commit 6cbdfb7e6d
6 changed files with 150 additions and 83 deletions

View File

@ -41,7 +41,7 @@ BUILDDIR = ../build
CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
LIBS =
LIBS = ..\..\Svc\external\log4j-1.2.8.jar
CLASSPATH = $(LIBDIR)/java/CasaAuthToken.jar;$(LIBS)
CUR_DIR := $(shell pwd)

View File

@ -31,7 +31,8 @@ EXTRA_DIST = CasaAuthPolicyEditor.bat \
CasaIdenTokenSettingsEditor.bat \
CasaSvcSettingsEditor.bat \
startup.bat \
shutdown.bat
shutdown.bat \
log4j.properties
.PHONY: package package-clean package-install package-uninstall
package package-clean package-install package-uninstall:

View File

@ -0,0 +1,20 @@
########################################################
#
# log4j properties
#
########################################################
#
# Root logger configuration.
#
log4j.rootLogger=info, DefaultAppender
#
# DefaultAppender configuration.
#
log4j.appender.DefaultAppender=org.apache.log4j.RollingFileAppender
log4j.appender.DefaultAppender.File=ATS_INSTALL_DIRats/catalinabase/logs/ats.log
log4j.appender.DefaultAppender.MaxFileSize=100KB
log4j.appender.DefaultAppender.MaxBackupIndex=2
log4j.appender.DefaultAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.DefaultAppender.layout.ConversionPattern=%d{ISO8601} %p %C{2} %m%n

View File

@ -123,7 +123,7 @@ CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class))
AXIS_LIBS = $(AXIS_JARS_DIR)/axis.jar;$(AXIS_JARS_DIR)/saaj.jar;$(AXIS_JARS_DIR)/wss4j-1.5.0.jar;$(AXIS_JARS_DIR)/xml-apis.jar;$(AXIS_JARS_DIR)/xmlsec-1.2.1.jar;$(AXIS_JARS_DIR)/xercesImpl.jar
#AXIS_LIBS = $(AXIS_JARS_DIR)/wss4j-1.5.0.jar
LIBS = $(TOMCAT_DIR)/servlet-api.jar
LIBS = $(TOMCAT_DIR)/servlet-api.jar;../external/log4j-1.2.8.jar
CLASSPATH = $(AXIS_LIBS);$(IDENT_ABSTRACTION_DIR)/identity-abstraction.jar;$(IDENT_ABSTRACTION_DIR)/bandit-util.jar;$(IDENT_ABSTRACTION_DIR)/castor-1.0.4.jar;$(LIBS)
CUR_DIR := $(shell pwd)

View File

@ -324,6 +324,12 @@ public class SetupAsWindowsService
return iReturn;
}
sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Dlog4j.configuration=file:" + sDirInstall + "/ats/etc/log4j.properties";
if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand)))
{
return iReturn;
}
sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Djava.io.tmpdir=" + sDirCatalinaBase+ "/temp\"";
if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand)))
{

View File

@ -207,6 +207,12 @@
}
"Entry"
{
"MsmKey" = "8:_9C8919B94D6848F8A4EBFE340828E1FB"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_9CDF186732904E43A4D641CE90A04327"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
@ -460,6 +466,20 @@
"InstallerClass" = "11:FALSE"
"CustomActionData" = "8:"
}
"{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_25F52A1B54234255AB51404D52AA4CBE"
{
"Name" = "8:CommandLauncher.exe )InitConfigFile - ats.log)"
"Condition" = "8:"
"Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8"
"FileType" = "3:2"
"InstallAction" = "3:1"
"Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\log4j.properties output=[TARGETDIR]ats\\etc\\log4j.properties"
"EntryPoint" = "8:"
"Sequence" = "3:17"
"Identifier" = "8:_EB425F32_F807_4C36_AC86_B75AEEEC7D29"
"InstallerClass" = "11:FALSE"
"CustomActionData" = "8:"
}
"{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_36863141C9454EFC8202B71293813223"
{
"Name" = "8:CommandLauncher.exe (DeleteFile - CasaSvcSettingsEditor.bat)"
@ -1479,6 +1499,26 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_9C8919B94D6848F8A4EBFE340828E1FB"
{
"SourcePath" = "8:..\\..\\..\\Svc\\templates\\windows\\log4j.properties"
"TargetName" = "8:log4j.properties"
"Tag" = "8:"
"Folder" = "8:_DB2EB303AA7A4FA0874CCF7DE23125AB"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_9CDF186732904E43A4D641CE90A04327"
{
"SourcePath" = "8:..\\..\\..\\Svc\\templates\\identoken.settings"