Documentation ¶
Overview ¶
********************************************************************** MicroCore Copyright 2017 - 2020 by Danyil Dobryvechir ([email protected] [email protected]) ***********************************************************************
********************************************************************** MicroCore Copyright 2017 - 2020 by Danyil Dobryvechir ([email protected] [email protected]) ***********************************************************************
Index ¶
- Constants
- Variables
- func CheckDvLogStreamToFile(parameters map[string]string)
- func CleanEOL(dat []byte)
- func EnsureDirForFileExists(fileName string) bool
- func EnsureFolder(folder string) string
- func EnsureFolderCheck(folder string) (string, bool)
- func EnsureSubFolderCheck(folderUser string, folderSub string) (folder string, res bool)
- func EnsureSubFolderCritical(folderUser string, folderSub string) string
- func FindConfigFile(folder string, name string) (fileName string, err error)
- func FlushStream()
- func FormErrorMessage(err string) []byte
- func GetCurrentTimeStampForLog() []byte
- func GetLogLevelByDefinition(logLevel string, defaultLevel int) int
- func GetNextUniqueNumber() int64
- func GetPrincipalFolder(ensure bool) string
- func GetSafeFileName(dat string) string
- func GetSubFolder(mainFolder string, subFolder string) string
- func GetTaskFolder() string
- func GetTaskSubFolder(subFolder string) string
- func GetTemporaryFileName() string
- func LogLevelFromProperties(parameters map[string]string, propertyName string, defLevel int) int
- func LogLevelToInt(levelWord string) (level int, ok bool)
- func Printf(formatShort, formatFull string, a ...interface{})
- func PrintfError(format string, a ...interface{})
- func PrintfFullOnly(format string, a ...interface{})
- func Println(short string, full string)
- func PrintlnError(s string)
- func PrintlnToStream(s string) (err error)
- func SetCurrentNamespace(namespace string)
- func SetLogLevel(logLevel string)
- func StartingLogFile()
- func WriteRequestToLog(body []byte, r *http.Request) string
- func WriteResponseToLog(logFile string, resp *http.Response, body []byte)
Constants ¶
View Source
const ( LogFatal = iota LogError LogWarning LogInfo LogDetail LogDebug LogTrace )
Variables ¶
View Source
var CurrentLogLevel = LogError
View Source
var CurrentNamespace string
View Source
var CurrentRootFolder string
View Source
var StartTime = time.Now().Unix() - 1520000000
Functions ¶
func CheckDvLogStreamToFile ¶
func EnsureDirForFileExists ¶
func EnsureFolder ¶
func EnsureFolderCheck ¶
func EnsureSubFolderCheck ¶
func EnsureSubFolderCritical ¶
func FlushStream ¶
func FlushStream()
func FormErrorMessage ¶
func GetCurrentTimeStampForLog ¶
func GetCurrentTimeStampForLog() []byte
func GetLogLevelByDefinition ¶
func GetNextUniqueNumber ¶
func GetNextUniqueNumber() int64
func GetPrincipalFolder ¶
func GetSafeFileName ¶
func GetSubFolder ¶
func GetTaskFolder ¶
func GetTaskFolder() string
func GetTaskSubFolder ¶
func GetTemporaryFileName ¶
func GetTemporaryFileName() string
func LogLevelFromProperties ¶
func LogLevelToInt ¶
func PrintfError ¶
func PrintfError(format string, a ...interface{})
func PrintfFullOnly ¶
func PrintfFullOnly(format string, a ...interface{})
func PrintlnError ¶
func PrintlnError(s string)
func PrintlnToStream ¶
func SetCurrentNamespace ¶
func SetCurrentNamespace(namespace string)
func SetLogLevel ¶
func SetLogLevel(logLevel string)
func StartingLogFile ¶
func StartingLogFile()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.