> This may be a stupid question but...I'm not even sure if I'm using a log
for
> Jetspeed.  Should I have defined it in my server.xml file or somewhere

With the standard. jetspeed deployment, the log file is configured to write
to /WEB-INF/log/jetspeed.log

Look at WEB/INF/conf/TurbineResources.properties.
Log4J has a lot of features. You can configure it to write error msgs to a
database, and send emails. Here is the configuration from the TRP:

# -------------------------------------------------------------------
#
#  L O G S
#
# -------------------------------------------------------------------
# This is the configuration for the logging system. In most cases
# you don't need to modify anything. However, if you wish to add more
# facilities or modify the existing settings, then you can do so.
#
# destination.file: A path relative to the web app root
# -------------------------------------------------------------------
services.LoggingService.facilities=system,debug,security
services.LoggingService.default=system
services.LoggingService.loggingConfig=org.apache.turbine.services.logging.Pr
opertiesLoggingConfig

# A facility for system logging.
services.LoggingService.system.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.system.className=org.apache.turbine.services.logging
.FileLogger
services.LoggingService.system.level=DEBUG

# A facility for the scheduler service
# To disable started/stopped messages set the level to ERROR
services.LoggingService.scheduler.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.scheduler.className=org.apache.turbine.services.logg
ing.FileLogger
services.LoggingService.scheduler.level=DEBUG

# A facility for debugging applications. Messages will go both
# to the log file and the server console.
services.LoggingService.debug.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.debug.destination.console=true
services.LoggingService.debug.className=org.apache.turbine.services.logging.
FileLogger
services.LoggingService.debug.level=DEBUG

# A facility for SQL query logging
# To enable SQL query logging, set the level to DEBUG
services.LoggingService.sql.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.sql.className=org.apache.turbine.services.logging.Fi
leLogger
services.LoggingService.sql.level=DEBUG

# A facility for security audit. NOTE! As of 23 Jan 2001
# Turbine does not have any standard security auditing
# functionality. It's up to your application.
services.LoggingService.security.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.security.className=org.apache.turbine.services.loggi
ng.FileLogger
services.LoggingService.security.level=DEBUG

# An example configuration for automatic log rotation using Log4Java
# This will keep the log file size under 1MB and save up to 5 backup copies
services.LoggingService.rotation.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.rotation.file.size=1048576
services.LoggingService.rotation.file.backups=5
services.LoggingService.rotation.className=org.apache.turbine.services.loggi
ng.Log4JavaLogger
services.LoggingService.rotation.level=INFO

# An example configuration for using *NIX syslogd with Log4Java
services.LoggingService.syslog.destination.syslogd.host=my.syslog.server.com
services.LoggingService.syslog.destination.syslogd.facility=LOG_DAEMON
services.LoggingService.syslog.className=org.apache.turbine.services.logging
.Log4JavaLogger
services.LoggingService.syslog.level=INFO

# An example configuration for using remote Log4Java server
services.LoggingService.remote.destination.remote.host=my.remote.server.com
services.LoggingService.remote.destination.remote.port=1099
services.LoggingService.remote.className=org.apache.turbine.services.logging
.Log4JavaLogger
services.LoggingService.remote.level=INFO

# An example configuration for sending error reports as email with Log4Java
# notes:
# * uses 'mail.server' as SMTP server to send mail through
# * log4j will send the email when an ERROR is logged, with
#   'buffer.size' previous (non-ERROR) logs included in the email
# * configured to log to a file as well otherwise stacktraces are lost
services.LoggingService.email.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.email.destination.email.from=root@localhost
services.LoggingService.email.destination.email.to=root@localhost
services.LoggingService.email.destination.email.subject=Jetspeed Error
Report
services.LoggingService.email.destination.email.buffer.size=512
services.LoggingService.email.className=org.apache.turbine.services.logging.
Log4JavaLogger
services.LoggingService.email.level=INFO

# -------------------------------------------------------------------
# SMTP-From header for your outgoing messages
#
# All failed delivery messages will be returned to this address.
# If unset, these messages will be sent to the address in the
# From header (standard behaviour)
#
# Default: null
# -------------------------------------------------------------------

mail.smtp.from=



----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 8:56 AM
Subject: RE: Portlet example help...


> Paul,
>
> This may be a stupid question but...I'm not even sure if I'm using a log
for
> Jetspeed.  Should I have defined it in my server.xml file or somewhere
> else??  (Sorry...I'm still a newbie learning both this and Java).  Also,
> would you be able to explain the difference between action and portlet
> classes.  I'm not sure if I understand how both are used/work.  Thanks.
>
> Bob.
>
>
> -----Original Message-----
> From: Paul Spencer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 5:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Portlet example help...
>
>
> Bob,
> Are their any error message in the Jetspeed.log?
>
> Paul Spencer
>
> David Sean Taylor wrote:
> >
> > > 'local-portlets.xreg' in the directory
> > > /usr/local/etc/tomcat_3.2.3/webapps/jetspeed/WEB-INF.
> >
> > xreg files go in
> /usr/local/etc/tomcat_3.2.3/webapps/jetspeed/WEB-INF/conf
> >
> > also, try to customize another user, perhaps turbine/turbine
> > I have also had problems using the customizer on the admin user.
> > You can also edit the psml files, for instance the turbine user's psml
is
> > located in:
> >
> > /WEB-INF/psml/user/turbine/html/default.psml
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to