Presto Administration : Presto Server Configuration : Presto Logging : Configure Logging for the Presto Server
Configure Logging for the Presto Server
The Presto Server log, prestoserver.log, logs all exceptions from startup through shutdown. See Presto Logging for links to additional types of logging you can use with Presto.
Note:  
For clustered environments, updating logging configuration affects logging only for the Presto Server where you are currently logged in. Generally, this is the behavior you want.
To change logging for all Presto Servers in the cluster, update logging configuration for one server and copy the updated presto-install/apache-tomee-jaxrs/conf/log4j.properties file to each of the other Presto Servers in the cluster. You do not need to restart Presto Servers.
To configure basic logging for the server
1. Click Admin Console in the Presto Hub main menu.
2. Expand the Audits and Logs section and click Server Log.
3. Edit any of the following properties:
*Root Log Warning = the general logging level to use, such as ERROR. All exceptions for that level and above will be logged, so this contributes directly to how quickly logs may grow. DEBUG is the most verbose logging level.
*Log file path = both the folder where the log files for the Presto Server should be saved and the name to use for log files. This defaults to tomcat-install/logs/prestoserver.log.
You can use an absolute path or a relative path. Relative paths are relative to the web-apps-home folder.
*Maximum log file size = maximum size for a log file. Once a file has reached this size is it saved as a numbered backup, such as prestoserver.log.1 and a new log file is started.
*Data nucleus logging level = This property should only be changed when requested by Presto technical support to help debug specific issues. It is the logging level to use in the data mapping layer for Presto.
*HTTP client logging level = This property should only be changed when requested by Presto technical support to help debug specific issues. It is the logging level to use for requests/responses between the Presto Server and mashable information sources.
*NET SF logging level = This property should only be changed when requested by Presto technical support to help debug specific issues. It is the logging level to use for JSON serialization and deserialization.
*ACEGI security logging level = This property should only be changed when requested by Presto technical support to help debug specific issues. It is the logging level to use with the Presto security layer.
*Apache logging level = This property should only be changed when requested by Presto technical support to help debug specific issues. It is the logging level to use with many of the third party libraries used in Presto.
*Spring framework logging level = This property should only be changed when requested by Presto technical support to help debug specific issues. It is the logging level to use for server initialization, shutdown and the request/response pipeline for the Presto Server.
4. If desired, click Advanced Options to set any of these properties:
*Log class for normal logging = the java class that handles appending log entries to the log file. This defaults to org.apache.log4j.RollingFileAppender.
*Layout class for normal logging = the Java class that handles the layout pattern for entries to log files. This defaults to org.apache.log4j.PatternLayout.
*Layout pattern for normal logging = the expression defining the pattern for entries to the log file. This defaults to %d %p [%c - %m%n
*Maximum normal log file backups = how many log backups are kept. This defaults to seven.
The advanced properties are defined by Log4J, the underlying logging framework for Presto. For more information, see http://logging.apache.org/log4j/1.2
5. Click Save log settings.
This change becomes effective automatically within 60 seconds.
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback