11// Copyright (c) 2012 - Cloud Instruments Co., Ltd.
2- //
2+ //
33// All rights reserved.
44//
55// Redistribution and use in source and binary forms, with or without
6- // modification, are permitted provided that the following conditions are met:
7- //
6+ // modification, are permitted provided that the following conditions are met:
7+ //
88// 1. Redistributions of source code must retain the above copyright notice, this
9- // list of conditions and the following disclaimer.
9+ // list of conditions and the following disclaimer.
1010// 2. Redistributions in binary form must reproduce the above copyright notice,
1111// this list of conditions and the following disclaimer in the documentation
12- // and/or other materials provided with the distribution.
13- //
12+ // and/or other materials provided with the distribution.
13+ //
1414// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1515// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1616// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
@@ -64,7 +64,7 @@ var loggerTypeToStringRepresentations = map[loggerTypeFromString]string{
6464 adaptiveLoggerTypeFromString : adaptiveLoggerTypeFromStringStr ,
6565}
6666
67- // getLoggerTypeFromString parses a string and returns a corresponding logger type, if successful.
67+ // getLoggerTypeFromString parses a string and returns a corresponding logger type, if successful.
6868func getLoggerTypeFromString (logTypeString string ) (level loggerTypeFromString , found bool ) {
6969 for logType , logTypeStr := range loggerTypeToStringRepresentations {
7070 if logTypeStr == logTypeString {
@@ -75,7 +75,7 @@ func getLoggerTypeFromString(logTypeString string) (level loggerTypeFromString,
7575 return 0 , false
7676}
7777
78- // logConfig stores logging configuration. Contains messages dispatcher, allowed log level rules
78+ // logConfig stores logging configuration. Contains messages dispatcher, allowed log level rules
7979// (general constraints and exceptions), and messages formats (used by nodes of dispatcher tree)
8080type logConfig struct {
8181 Constraints logLevelConstraints // General log level rules (>min and <max, or set of allowed levels)
0 commit comments