INNER CODE UNIT · Go

toStringLevel

oracle/oracle-db-appdev-monitoring · alertlog/alertlog.go:73

func toStringLevel(messageLevel sql.NullInt64, logLevelEnabled bool) string {
	if !logLevelEnabled {
		return ""
	}
	if !messageLevel.Valid {
		return infoLevel
	}
	return levelMap[messageLevel.Int64]
}

// logDestinationForDatabase resolves the output path for a database, either shared or per-database.
func logDestinationForDatabase(logDestination, database string, perDatabaseFiles bool) string {
	if !perDatabaseFiles {
		return logDestination
	}

	dir := filepath.Dir(logDestination)
	ext := filepath.Ext(logDestination)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…