r1470@opsdev009 (orig r77776): cpiro | 2008-01-15 04:04:12 -0800
commit0193e46f949511038ad2b1ab9acc6047847e4f2d
author(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Tue, 15 Jan 2008 12:06:49 +0000 (15 12:06 +0000)
committer(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Tue, 15 Jan 2008 12:06:49 +0000 (15 12:06 +0000)
treefaf784cb32937ad0250419043720691ce29a8b0f
parentaa00ebc96042b52dddf59294a089cff2cefee357
 r1470@opsdev009 (orig r77776):  cpiro | 2008-01-15 04:04:12 -0800
 [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

git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@754 41a61cd8-c433-0410-bb1c-e256eeef9e11
tutorial/erl/server.config [new file with mode: 0644]
tutorial/erl/server.sh