Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 411757

Summary: Provide default log configuration environments
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: ServerAssignee: Maciej Bendkowski <maciej.bendkowski>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: unspecifiedFlags: Szymon.Brandys: review+
Target Milestone: 4.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Maciej Bendkowski CLA 2013-06-27 06:49:33 EDT
Orion is shipped with one default logback configuration file which uses a standard console appender. This log strategy is reasonable in case of a development environment, however production instances like OrionHub could probably use a file appender strategy with default log file rotation build in logback (preferably by default). A default set of configuration files would make it easier to adopt custom log configuration environments.
Comment 1 Maciej Bendkowski CLA 2013-07-01 11:33:46 EDT
Review requests:
https://orion.eclipse.org/git/reviewRequest.html#https://github.com/maciej-bendkowski/orion.server.git_4be000adc2dc12c2368c70f2a25e39deffd8ee63

https://orion.eclipse.org/git/reviewRequest.html#https://github.com/maciej-bendkowski/orion.client.git_cd6f1a28fce8cc508abfa82289ee7660ffb9b095

I've added default logback configuration files in three environment flavors: debug, development and production. Those configuration files are quite simple examples for further extension. The production configuration file provides a default 30-day log roll - configurable either in the configuration file itself, or using the Orion config file. I've added environment launchers in the client side, so it's easy for developers to switch between different log strategies.

I assert that I authored 100% of the content of this contribution and have the rights to donate the content to Eclipse under the EPL.
Comment 2 Szymon Brandys CLA 2013-07-11 04:10:59 EDT
I merged just new logback configurations. I don't think we need to have many launch configurations and devs can just modify their launchers on demand.