func newWSWriter() Logger {
	return &WSWriter{Level: LevelTrace}
}
newWSWriter create websocket writer.
package logs
import (
	"encoding/json"
	"fmt"
	"golang.org/x/net/websocket"
	"net/http"
	"time"
)
const (
	DEFAULT_WSCHANNEL_SIZE = 10000
)
type WSWriter struct {
	Level       int `json:"level"`
	ChannelSize int `json:"channelSize"`
	msgs        chan string
}