aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc/logging/parc_LogLevel.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-01-24 17:52:53 +0100
committerMauro Sardara <msardara@cisco.com>2019-01-24 17:52:53 +0100
commitc07ad72f016930e2aba6471d0e2e9625b935bf9a (patch)
tree03aa7b7c737a7a70321ef25d67c2fbd892cd76db /libparc/parc/logging/parc_LogLevel.h
parent9fc2b9ec49c54ec2d5f0164bbedc1c78732c464c (diff)
Remove cframework files from master
Change-Id: I02f17ede1cf97986a8b8852ed6d6a28fc016f590 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libparc/parc/logging/parc_LogLevel.h')
-rwxr-xr-xlibparc/parc/logging/parc_LogLevel.h132
1 files changed, 0 insertions, 132 deletions
diff --git a/libparc/parc/logging/parc_LogLevel.h b/libparc/parc/logging/parc_LogLevel.h
deleted file mode 100755
index 4540924e..00000000
--- a/libparc/parc/logging/parc_LogLevel.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * Copyright (c) 2017 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file parc_LogLevel.h
- * @brief Logging levels for PARCLog
- *
- * A PARCLogLevel represents both the severity level of a particular PARCLogEntry,
- * and the threshold of a particular PARCLog instance.
- *
- */
-#ifndef PARC_Library_parc_LogLevel_h
-#define PARC_Library_parc_LogLevel_h
-
-typedef unsigned char PARCLogLevel;
-
-/** OFF is a special level that can be used to turn off logging. */
-extern const PARCLogLevel PARCLogLevel_Off;
-
-/** ALL indicates that all messages should be logged. */
-extern const PARCLogLevel PARCLogLevel_All;
-
-/** PARCLogLevel_Emergency is a message level indicating the system is unusable. */
-extern const PARCLogLevel PARCLogLevel_Emergency;
-
-/** PARCLogLevel_Alert is a message level indicating action must be taken immediately to ensure correctness. */
-extern const PARCLogLevel PARCLogLevel_Alert;
-
-/** PARCLogLevel_Critical is a message level for critical conditions. */
-extern const PARCLogLevel PARCLogLevel_Critical;
-
-/** PARCLogLevel_Error is a message level reporting error conditions. */
-extern const PARCLogLevel PARCLogLevel_Error;
-
-/** PARCLogLevel_Warning indicates a fairly detailed tracing message. */
-extern const PARCLogLevel PARCLogLevel_Warning;
-
-/** FINEST indicates a normal but significant condition. */
-extern const PARCLogLevel PARCLogLevel_Notice;
-
-/** INFO is a message level for informational messages. */
-extern const PARCLogLevel PARCLogLevel_Info;
-
-/** INFO is a message level for debug-level messages. */
-extern const PARCLogLevel PARCLogLevel_Debug;
-
-/**
- * Compare `PARCLogLevel` instances @p levelA and @p levelA for order.
- *
- * @param [in] levelA An instance of PARCLogLevel.
- * @param [in] levelB An instance of PARCLogLevel.
- *
- * @return < 0 levelA is less than levelB
- * @return == 0 levelA is equal to levelB
- * @return > 0 levelA is greater than levelB
- *
- * Example:
- * @code
- * {
- * int comparison = parcLogLevel_Compare(PARCLogLevel_Notice, PARCLogLevel_Notice);
- * }
- * @endcode
- */
-#define parcLogLevel_Compare(_levelA_, _levelB_) (_levelA_ - _levelB_)
-//int parcLogLevel_Compare(const PARCLogLevel levelA, const PARCLogLevel levelB);
-
-/**
- * Determine if two instances of PARCLogLevel are equal.
- *
- * @param [in] levelA An instance of PARCLogLevel.
- * @param [in] levelB An instance of PARCLogLevel.
- *
- * @return true The instances are equal.
- * @return false The instances are not equal.
- *
- * Example:
- * @code
- * {
- * bool equal = parcLogLevel_Equals(PARCLogLevel_Notice, PARCLogLevel_Notice);
- * }
- * @endcode
- */
-int parcLogLevel_Equals(const PARCLogLevel levelA, const PARCLogLevel levelB);
-
-/**
- * Get the string representation of the PARCLogLevel;
- *
- * @param [in] level A valid PARCLogLevel
- *
- * @return A pointer to a constant, nul-terminated C string.
- *
- * Example:
- * @code
- * {
- * const char * logLevelString = parcLogLevel_ToString(PARCLogLevel_Emergency);
- * }
- * @endcode
- */
-const char *parcLogLevel_ToString(const PARCLogLevel level);
-
-/**
- * Given a string representation of a logging level, return the corresponding PARCLogLevel value.
- *
- * The string is case insensitive.
- *
- * Unknown or uninterpretable strings return PARCLogLevel_All.
- *
- * @param [in] levelAsString A nul-terminated C string representation of the logging level.
- *
- * @return A valid PARCLogLevel.
- *
- * Example:
- * @code
- * {
- * PARCLogLevel level = parcLogLevel_FromString("Emergency");
- * }
- * @endcode
- */
-PARCLogLevel parcLogLevel_FromString(const char *levelAsString);
-#endif