DEV Community

Cover image for Pebl Release 0.0.5
Jin Lee for pebl

Posted on • Originally published at blog.pebl.io

Pebl Release 0.0.5

Quick Summary

Release 0.0.5 has support for streaming production logs using the CLI and updates to the Go package.

Longform

pebl CLI

Previously the only way to look at logs from the cloud runtime was to go to our console. The latest pebl CLI now supports the command pebl logs, which will stream those logs so that you can see them on your terminal.

$ ./pebl logs
[06/01 12:43:49] foo
[06/01 12:44:34] bar
[06/01 12:44:35] hello, world!
Enter fullscreen mode Exit fullscreen mode

To upgrade you can follow the setup steps.

Go SDK

Previously our Go package was structured such that the pebl bindings were under the sdk package, meaning that you had to import the package using github.com/peblcloud/go/sdk.

Based on user feedback we have decided to move all the bindings to the root level, and to change the package name to pebl. In short you can now do this:

package main

import (
    "net/http"
    "github.com/peblcloud/go"
)

func main() {
    service := http.NewServeMux()

    service.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("hello, world!\n"))
    })

    pebl.Service(service, "svc.internal")
}
Enter fullscreen mode Exit fullscreen mode

To upgrade you can run go get github.com/peblcloud/go@v0.0.5 in your Go projects.

Top comments (0)