diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-01-12 11:29:21 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-01-12 11:29:21 -0500 |
commit | 691380a60a0f038e22af4b518df91baefbf25e85 (patch) | |
tree | 302bda63c5c37a7cb6401bb57211ba936c3cd4fb /Godeps/_workspace/src/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go | |
parent | cf0d275ae44ae0e554c039b34a9b68ddac7a081f (diff) | |
parent | a41c807c700979c4dfb0cdda179e889f022dd80b (diff) | |
download | chat-691380a60a0f038e22af4b518df91baefbf25e85.tar.gz chat-691380a60a0f038e22af4b518df91baefbf25e85.tar.bz2 chat-691380a60a0f038e22af4b518df91baefbf25e85.zip |
Merge pull request #1852 from mattermost/PLT-1608
PLT-1608 Upgrading logging package
Diffstat (limited to 'Godeps/_workspace/src/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go b/Godeps/_workspace/src/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go new file mode 100644 index 000000000..164c2add4 --- /dev/null +++ b/Godeps/_workspace/src/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go @@ -0,0 +1,13 @@ +package main + +import l4g "code.google.com/p/log4go" + +func main() { + // Load the configuration (isn't this easy?) + l4g.LoadConfiguration("example.xml") + + // And now we're ready! + l4g.Finest("This will only go to those of you really cool UDP kids! If you change enabled=true.") + l4g.Debug("Oh no! %d + %d = %d!", 2, 2, 2+2) + l4g.Info("About that time, eh chaps?") +} |