func NewLogClient(workspaceID, workspaceSecret, logType string, metadata map[string]string) LogClient {
	client := LogClient{
		workspaceID:     workspaceID,
		workspaceSecret: workspaceSecret,
		logType:         logType,
		metadata:        metadata,
	}

	if client.metadata == nil {
		client.metadata = map[string]string{}
	}

	client.httpClient = &http.Client{Timeout: time.Second * 30}
	client.signingKey, _ = base64.StdEncoding.DecodeString(workspaceSecret)
	client.apiLogsURL = fmt.Sprintf("https://%s.ods.opinsights.azure.com/api/logs?api-version=2016-04-01", workspaceID)

	return client
}
// NewLogClient creates a log client
NewLogClient creates a log client
// NewLogClient creates a log client
func NewLogClient(workspaceID, workspaceSecret, logType string, metadata map[string]string) LogClient {
	client := LogClient{
		workspaceID:     workspaceID,
		workspaceSecret: workspaceSecret,
		logType:         logType,
		metadata:        metadata,
	}
	if client.metadata == nil {
		client.metadata = map[string]string{}
	}
	client.httpClient = &http.Client{Timeout: time.Second * 30}
	client.signingKey, _ = base64.StdEncoding.DecodeString(workspaceSecret)
	client.apiLogsURL = fmt.Sprintf("https://%s.ods.opinsights.azure.com/api/logs?api-version=2016-04-01", workspaceID)
	return client
}
func NewLogClient ( workspaceID , workspaceSecret , logType string , metadata map [ string ] string ) LogClient { client := LogClient { workspaceID : workspaceID , workspaceSecret : workspaceSecret , logType : logType , metadata : metadata , } if client . metadata == nil { client . metadata = map [ string ] string { } } client . httpClient = & http . Client { Timeout : time . Second * 30 } client . signingKey , _ = base64 . StdEncoding . DecodeString ( workspaceSecret ) client . apiLogsURL = fmt . Sprintf ( " " , workspaceID ) return client }
NewLogClient creates a log client
NewLogClient creates a log client