Tango.info v2 software: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
(http://logback.qos.ch/reasonsToSwitch.html#logbackAccess)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Current ==
== Current ==
=== Libraries ===
=== Libraries ===
* log4j-1.2.14.jar - application logging, wrapped in info.tango.util.Logger
* log4j-1.2.14.jar (ca. 2006-09-18) - application logging, wrapped in info.tango.util.Logger
* junit-4.3.1.jar - for unit testing support, won't affect the main codebase directly, just the test cases
* junit-4.3.1.jar - for unit testing support, won't affect the main codebase directly, just the test cases
* wicket-1.4.16.jar - UI framework, not wrappable
* wicket-1.4.16.jar - UI framework, not wrappable
* wicket-extensions-1.4.16.jar
* wicket-extensions-1.4.16.jar
* mysql-connector-java-5.1.5-bin.jar - JDBC driver for connecting to database, used at runtime, doesn't affect codebase
* mysql-connector-java-5.1.5-bin.jar - JDBC driver for connecting to database, used at runtime, doesn't affect codebase
* http://www.mybatis.org/


Jetty libraries, only used at runtime to provide a servlet container, and don't affect the codebase except for the "launch" classes (which wouldn't be used in production):
Jetty libraries, only used at runtime to provide a servlet container, and don't affect the codebase except for the "launch" classes (which wouldn't be used in production):
Line 16: Line 18:


=== Other software ===
=== Other software ===
* git for code management
* [[git]] for code management


== Decisions ==
== Decisions ==
Line 34: Line 36:
But it is unclear how it works with Apache.
But it is unclear how it works with Apache.
=== Log4j vs Logback ===
=== Log4j vs Logback ===
* http://logback.qos.ch/
Log4j originally written by the same person that wrote Logback later.
* http://logback.qos.ch/ (source)
* http://logback.qos.ch/reasonsToSwitch.html
* http://logback.qos.ch/reasonsToSwitch.html#logbackAccess
* http://logback.qos.ch/reasonsToSwitch.html#logbackAccess
Logback-classic allows integration with slf4j.
http://www.slf4j.org/ says that Wicket and Jetty depend on slf4j. And slf4j is mentioned above already. (slf4j-api-1.5.2.jar, slf4j-log4j12-1.5.2.jar)
http://logback.qos.ch/access.html says:
* integrates with Servlet containers such as Jetty or Tomcat to provide rich and powerful HTTP-access log functionality
* logback-access requires logback-core, but is independent of logback-classic as well as slf4j.
* bundling at container level is required, not web app level.
http://logback.qos.ch/manual/migrationFromLog4j.html
see also:
* http://stackoverflow.com/questions/354837/whats-up-with-logging-in-java

Latest revision as of 2013-06-13T02:39:18

Current

Libraries

  • log4j-1.2.14.jar (ca. 2006-09-18) - application logging, wrapped in info.tango.util.Logger
  • junit-4.3.1.jar - for unit testing support, won't affect the main codebase directly, just the test cases
  • wicket-1.4.16.jar - UI framework, not wrappable
  • wicket-extensions-1.4.16.jar
  • mysql-connector-java-5.1.5-bin.jar - JDBC driver for connecting to database, used at runtime, doesn't affect codebase

Jetty libraries, only used at runtime to provide a servlet container, and don't affect the codebase except for the "launch" classes (which wouldn't be used in production):

  • jetty-6.1.4rc1.jar
  • jetty-util-6.1.4rc1.jar
  • servlet-api-2.5-6.1.4rc1.jar
  • slf4j-api-1.5.2.jar
  • slf4j-log4j12-1.5.2.jar

Other software

  • git for code management

Decisions

Jetty vs Tomcat

As long as Apache HTTP is needed, mainly for the old PHP code including MediaWiki (Java based JAMWiki may be a replacement ) connection to Apache is needed:

Seems that Jetty can be tailored to use fewer resources than Tomcat, i.e. is

  • better scalable on the main server
  • better on low powered system.

But it is unclear how it works with Apache.

Log4j vs Logback

Log4j originally written by the same person that wrote Logback later.

Logback-classic allows integration with slf4j. http://www.slf4j.org/ says that Wicket and Jetty depend on slf4j. And slf4j is mentioned above already. (slf4j-api-1.5.2.jar, slf4j-log4j12-1.5.2.jar)

http://logback.qos.ch/access.html says:

  • integrates with Servlet containers such as Jetty or Tomcat to provide rich and powerful HTTP-access log functionality
  • logback-access requires logback-core, but is independent of logback-classic as well as slf4j.
  • bundling at container level is required, not web app level.

http://logback.qos.ch/manual/migrationFromLog4j.html

see also: