blob: 84d2a9c8789e8442e30f6e0444d01ea23ff14b3e [file] [log] [blame]
package rt_test
import (
"veyron/runtimes/google/rt"
)
func ExampleApplication() {
r := rt.R()
// Uses a the same Logger as the internal runtime and libraries.
l := r.Logger()
l.VI(2).Info("hello from my app, mixed in with system logs\n")
// Creates a seperate Logger from the internal runtime and libraries.
l, _ = r.NewLogger("myapp")
l.VI(2).Info("hello from my app in my own log file\n")
}