You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: xlog.go
    path of file: ./repos/dotweb/logger
    
    the code of the file until where you have to start completion: package logger

import (
	"fmt"
	"os"
	"path/filepath"
	"strings"
	"syscall"
	"time"

	"github.com/devfeel/dotweb/framework/file"
)

type chanLog struct {
	Content   string
	LogTarget string
	LogLevel  string
	isRaw     bool
	logCtx    *logContext
}

type xLog struct {
	logRootPath    string
	logChan_Custom chan chanLog
	enabledLog     bool
	enabledConsole bool
}

// NewXLo
    
func (l *xLog) log(log string, logTarget string, logLevel string, isRaw bool) {
	if l.enabledLog {
		skip := 3
		logCtx, err := callerInfo(skip)
		if err != nil {
			fmt.Println("log println err! " + time.Now().Format("2006-01-02 15:04:05") + " Error: " + err.Error())
			logCtx = &logContext{}
		}
		if logLevel != LogLevelRaw {
			logTarget = logTarget + "_" + logLevel
		}
		chanLog := chanLog{
			LogTarget: logTarget,
			Content:   log,
			LogLevel:  logLevel,
			isRaw:     isRaw,
			logCtx:    logCtx,
		}
		l.logChan_Custom <- chanLog
	}
}