examples

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 10 Imported by: 0

README

HTTP Server Example

This directory contains an example of how one might use this package in an HTTP server. To run the example server:

go run github.com/Silicon-Ally/zapgcp/examples --local=$LOCAL --min_log_level=$LOG_LEVEL

Then you can hit various endpoints to see what logs are produced, ex.

curl localhost:8080/
curl localhost:8080/some/path
curl localhost:8080/admin/test

Try changing $LOCAL from true to false to see how the logs change, or set $LOG_LEVEL to warn or error to only see higher log levels. 8080 is the default port and can be changed with the --port flag.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL