summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go')
-rw-r--r--vendor/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go b/vendor/github.com/alecthomas/log4go/examples/XMLConfigurationExample.go
new file mode 100644
index 00000000..164c2add
--- /dev/null
+++ b/vendor/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?")
+}