
5
3.2.2 Logging
Code Dx uses Logback for logging. To configure Logback, add a logback.xml file to the appdata
directory. An example Logback configuration will be provided in the sampleConfig folder of a
distribution copy of Code Dx. For more information about the logging configuration, consult
the Logback manual.
3.2.3 Code Dx Properties
The most important configuration file is codedx.props ("the 'props' file"), which is expected to
be located in the appdata directory. The 'props' file determines:
Database connection information
Super user credentials
Analysis behavior
Active Directory login information
The 'props' file is formatted as a .properties file, using key-value pairs to set various
configuration fields. An example 'props' file is provided in the sampleConfig directory of a
distribution copy of Code Dx.
3.2.4 Database Connection Properties
In order for Code Dx to access a database, you will need to tell it where the database is, what
type of database it is, and how to log in. For example, a connection to a MySQL database would
be configured as follows:
swa.db.url = jdbc:mysql://localhost/codedx
swa.db.driver = com.mysql.jdbc.Driver
swa.db.user = database_username
swa.db.password = database_password
swa.db.datasource = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
This configuration describes a MySQL database that is running on the same machine as the
Code Dx server, with a username of "database_username" and password of
"database_password".
Note that Code Dx does not create the database nor the user it uses for connections. The
assumption is that the database and user are created ahead of time by the database
administrator. Once those are ready, Code Dx will use the connection information to create
the tables it needs.
Kommentare zu diesen Handbüchern