Documentation ¶
Overview ¶
Package elasticsearch is a wrapper of the original "github.com/elastic/go-elasticsearch".
Index ¶
- type Client
- func (c *Client) Debug(str string, args ...interface{})
- func (c *Client) Error(str string, args ...interface{})
- func (c *Client) Fatal(str string, args ...interface{})
- func (c *Client) Info(str string, args ...interface{})
- func (c *Client) Log(fields map[string]interface{})
- func (c *Client) Panic(str string, args ...interface{})
- func (c *Client) Trace(str string, args ...interface{})
- func (c *Client) Warn(str string, args ...interface{})
- type Config
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is elasticsearch client.
func (*Client) Panic ¶
Panic to print panic log. Will print panic error stack and exit like panic().
type Config ¶
type Config struct { Addresses []string Username string Password string Level LogLevel // Will be formatted to include // current date. // Ex: logs-app => logs-app-YYYY-MM-DD Index string // Turn it on if you are logging // cron so it will wait until // sending the log to elasticseach // successfully before exiting app. IsSync bool }
Config is elasticsearch config.
Click to show internal directories.
Click to hide internal directories.