{"id":49894,"library":"zap","title":"Zap","description":"Package zap provides fast, structured, leveled logging.","status":"active","version":"1.28.0","language":"go","source_language":null,"source_url":"https://github.com/uber-go/zap","tags":["logging","structured-logging","performance"],"install":[{"cmd":"go get go.uber.org/zap","lang":"bash","label":"Install go.uber.org/zap"}],"dependencies":[],"imports":[{"symbol":"zap","correct":"go.uber.org/zap"}],"quickstart":{"code":"package main\n\nimport (\n    \"go.uber.org/zap\"\n)\n\nfunc main() {\n    logger, _ := zap.NewProduction()\n    defer logger.Sync()\n    logger.Info(\"hello world\", zap.String(\"key\", \"value\"))\n}","lang":"go","description":"Create a production logger and log a message"},"warnings":[{"fix":"Call logger.Sync() via defer or at exit","message":"zap.Logger must be synced before the program exits to flush buffered logs","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'fast':5 'level':7 'log':8,9,12 'packag':2 'perform':13 'provid':4 'structur':6,11 'structured-log':10 'zap':1,3","created_at":"2026-06-14T18:19:35.782383+00:00","updated_at":"2026-06-14T18:19:35.782383+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/uber-go/zap","github":"https://github.com/uber-go/zap","docs":"https://pkg.go.dev/go.uber.org/zap#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["logging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-14","next_check":"2026-12-11","install_tag":null}}