[thrift] add a configuration file to the Erlang server tutorial
authorChristopher Piro <cpiro@apache.org>
Tue, 15 Jan 2008 12:04:12 +0000 (12:04 +0000)
committerChristopher Piro <cpiro@apache.org>
Tue, 15 Jan 2008 12:04:12 +0000 (12:04 +0000)
commit5165f3e65ed5a072099f561d28b3b3994ab8aa95
treefaf784cb32937ad0250419043720691ce29a8b0f
parent8ca66b8805921f2ec60f088177f0e9596f08dc57
[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: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665426 13f79535-47bb-0310-9956-ffa450edef68
tutorial/erl/server.config [new file with mode: 0644]
tutorial/erl/server.sh