Use the logging API by default.
--- a/examples/interact.go Thu Jan 19 14:18:39 2012 -0600
+++ b/examples/interact.go Thu Jan 19 16:23:15 2012 -0600
@@ -16,10 +16,8 @@
// Demonstrate the API, and allow the user to interact with an XMPP
// server via the terminal.
func main() {
- if false {
- xmpp.Loglevel = syslog.LOG_DEBUG
- xmpp.Log = log.New(os.Stderr, "", 0)
- }
+ xmpp.Log = log.New(os.Stderr, "", 0)
+ xmpp.Loglevel = syslog.LOG_NOTICE
var jid xmpp.JID
flag.Var(&jid, "jid", "JID to log in as")