This page is no longer maintained — Please continue to the home page at www.scala-lang.org

[ANN] configgy 1.5

3 replies
robey
Joined: 2008-12-24,
User offline. Last seen 1 year 21 weeks ago.

Configgy is a library for handling config files and logging for a scala
daemon. The idea is that it should be simple and straightforward, allowing you
to plug it in and get started quickly, writing small useful daemons without
entering the shadowy world of java frameworks.

Changes in version 1.5 include these features:

- ScribeHandler for sending log entries to a scribe server
- ThrottledLogger for squelching repetitive messages
- ConfigMap.toConfigString() will generate a config file as a string
- Config.fromString() will parse a string into a Config object
- command-line "-D" options can override/append config items
- no longer squash all config keys to lowercase

and these bug fixes:

- possible NPE in Logger.elements [ijuma]
- various timezone bugs in tests
- be less aggressive about clearing out log nodes

It can't be a project without a website, so that's here:

http://www.lag.net/configgy/

The github repository is here:

http://github.com/robey/configgy/tree/master

And, for fans of maven/ivy, it should now be in the scala-tools maven
repository here:

http://scala-tools.org/repo-releases/

as "net.lag.configgy".

[Actually that repo doesn't work yet, but I expect it to RSN. I'm just having trouble figuring out how to upload to nexus.]

robey

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: [ANN] configgy 1.5

On Tue, Feb 02, 2010 at 03:08:31PM -0800, Robey Pointer wrote:
> Configgy is a library for handling config files and logging for a
> scala daemon. The idea is that it should be simple and
> straightforward, allowing you to plug it in and get started quickly,
> writing small useful daemons without entering the shadowy world of
> java frameworks.

...and if anyone's interested, at some point I spent a couple days
running around in the configgy codebase, hurting things. I fixed some
bugs but I don't remember what they were; mostly I was redecorating with
2.8 curtains. I can't say it works since I've never actually used it,
but hey, the tests pass and that's like a guarantee written in blood.

http://github.com/paulp/configgy/tree/scala-2.8

Peter Salanki
Joined: 2010-01-27,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] configgy 1.5

Great stuff!

What is the story about "official" 2.8 support? I know both ijuma and paulp have been working on it, but I do not know how up to date/tested their branches are.

Thanks

On Feb 3, 2010, at 12:08 AM, Robey Pointer wrote:

>
> Configgy is a library for handling config files and logging for a scala
> daemon. The idea is that it should be simple and straightforward, allowing you
> to plug it in and get started quickly, writing small useful daemons without
> entering the shadowy world of java frameworks.
>
>
> Changes in version 1.5 include these features:
>
> - ScribeHandler for sending log entries to a scribe server
> - ThrottledLogger for squelching repetitive messages
> - ConfigMap.toConfigString() will generate a config file as a string
> - Config.fromString() will parse a string into a Config object
> - command-line "-D" options can override/append config items
> - no longer squash all config keys to lowercase
>
> and these bug fixes:
>
> - possible NPE in Logger.elements [ijuma]
> - various timezone bugs in tests
> - be less aggressive about clearing out log nodes
>
>
> It can't be a project without a website, so that's here:
>
> http://www.lag.net/configgy/
>
> The github repository is here:
>
> http://github.com/robey/configgy/tree/master
>
> And, for fans of maven/ivy, it should now be in the scala-tools maven
> repository here:
>
> http://scala-tools.org/repo-releases/
>
> as "net.lag.configgy".
>
> [Actually that repo doesn't work yet, but I expect it to RSN. I'm just having trouble figuring out how to upload to nexus.]
>
>
> robey
>
>

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: [ANN] configgy 1.5

Hi Peter,

On Wed, 2010-02-03 at 07:00 +0100, Peter Salanki wrote:
> What is the story about "official" 2.8 support?

There is also an official 2.8 branch now:

http://github.com/robey/configgy/tree/scala-2.8

> I know both ijuma and paulp have been working on it, but I do not know how up to date/tested their branches are.

As Paul mentioned in another message, his branch includes bug fixes,
refactoring, 2.8-specific improvements, etc. As far as I can see, Paul
updates his branch relatively regularly.

My branch is a conservative port where things were changed as little as
possible to work with 2.8. This makes it easier to keep the port going
until Scala 2.8 is released and upstream decides to move to 2.8 as the
main branch. I update very regularly. When there is a delay, it's
usually because there is an issue somewhere (tests failing, dependencies
not yet available for the release, etc.). I just merged it with
upstream/master and upstream/scala-2.8 so it should be at 1.5 level now.

Not sure what others do to test their branches (apart from the unit
tests included with the distribution), but I also run the tests in our
codebase (where we use configgy) to check that everything is OK.

Best,
Ismael

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland