func LoggerFromConfigAsBytes(data []byte) (LoggerInterface, error) {
	conf, err := configFromReader(bytes.NewBuffer(data))
	if err != nil {
		return nil, err
	}
	return createLoggerFromFullConfig(conf)
}
LoggerFromConfigAsBytes creates a logger with config from bytes stream. Bytes should contain valid seelog xml.
package seelog
import (
	"bytes"
	"encoding/xml"
	"fmt"
	"io"
	"os"
)
func LoggerFromConfigAsFile(fileName string) (LoggerInterface, error) {
	file, err := os.Open(fileName)
	if err != nil {
		return nil, err
	}
	defer file.Close()
	conf, err := configFromReader(file)
	if err != nil {
		return nil, err
	}
	return createLoggerFromFullConfig(conf)
}