/[Apache-SVN]
ViewVC logotype

Revision 665426


Jump to revision: Previous Next
Author: cpiro
Date: Tue Jan 15 12:04:12 2008 UTC (16 years, 3 months ago)
Changed paths: 2
Log Message:
[thrift] add a configuration file to the Erlang server tutorial

Summary: Logger configuration (and all Thrift config in Erlang) now uses application:get_env/2 via thrift:config/2.  Defaults can be provided on the erl command line with ``-config <filename>''.  It may also be helpful to cascade config files; {key, value} pairs provided in subsequent files will override previous ones -- e.g. in our applications we use ``-config base.config -config cpiro.config''.

server.config was added as an example and server.sh was updated to invoke erl with ``-config server.config''.

Reviewed By: eletuchy

Test Plan: the tutorial server now outputs a reasonable set of messages

Revert Plan: ok


Changed paths

Path Details
Directoryincubator/thrift/trunk/tutorial/erl/server.config added
Directoryincubator/thrift/trunk/tutorial/erl/server.sh modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26