Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

logging_idl.idl

Go to the documentation of this file.
00001 /* 00002 * ALMA - Atacama Large Millimiter Array 00003 * (c) European Southern Observatory, 2002 00004 * Copyright by ESO (in the framework of the ALMA collaboration) 00005 * and Cosylab 2002, All rights reserved 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00020 * MA 02111-1307 USA 00021 */ 00022 #ifndef _LOGGING_IDL 00023 #define _LOGGING_IDL 00024 00025 #pragma prefix "alma" 00026 00027 00028 00046 module AcsLogLevels { 00047 00048 typedef short logLevelValue; 00049 00050 // In the past we used the value 0 for UNKNOWN or ALL without formal definition. 00051 // Now we try without the 0 until we need it. 00052 00053 const logLevelValue TRACE_VAL = 2; 00054 const string TRACE_NAME = "Trace"; 00055 00056 const logLevelValue DEBUG_VAL = 3; 00057 const string DEBUG_NAME = "Debug"; 00058 00059 const logLevelValue INFO_VAL = 4; 00060 const string INFO_NAME = "Info"; 00061 00062 const logLevelValue NOTICE_VAL = 5; 00063 const string NOTICE_NAME = "Notice"; 00064 00065 const logLevelValue WARNING_VAL = 6; 00066 const string WARNING_NAME = "Warning"; 00067 00068 // anomaly: value 7 is not defined! 00069 00070 const logLevelValue ERROR_VAL = 8; 00071 const string ERROR_NAME = "Error"; 00072 00073 const logLevelValue CRITICAL_VAL = 9; 00074 const string CRITICAL_NAME = "Critical"; 00075 00076 const logLevelValue ALERT_VAL = 10; 00077 const string ALERT_NAME = "Alert"; 00078 00079 const logLevelValue EMERGENCY_VAL = 11; 00080 const string EMERGENCY_NAME = "Emergency"; 00081 00082 // The proposed value 99 is more human friendly. Technically it would make more sense 00083 // to define OFF_VAL as the maximum allowed value (2^15 - 1). 00084 const logLevelValue OFF_VAL = 99; 00085 const string OFF_NAME = "Off"; 00086 }; 00087 00088 00092 module ACSLoggingLog { 00093 00094 struct NameValue { 00095 string name; 00096 string value; // any ? -> use than Property from Property Service 00097 }; 00098 00099 typedef sequence<NameValue> NameValueSeq; 00100 00106 /* 00107 enum LogType { 00108 Unknown, 00109 Shutdown, 00110 Trace, 00111 Debug, 00112 Info, 00113 Notice, 00114 Warning, 00115 Startup, 00116 Error, 00117 Critical, 00118 Alert, 00119 Emergency, 00120 Archive 00121 }; 00122 */ 00123 /* 00124 Header, 00125 Description, 00126 History, 00127 Meta, 00128 Data, 00129 Alarm, 00130 */ 00131 00135 struct LogBinaryRecord { 00136 AcsLogLevels::logLevelValue type; 00137 string TimeStamp; 00138 string File; 00139 unsigned long Line; 00140 string Routine; 00141 string SourceObject; 00142 string Host; 00143 string Process; 00144 string LogContext; 00145 string Thread; 00146 string StackId; 00147 long StackLevel; 00148 string LogId; 00149 long Priority; 00150 string Uri; 00151 string Audience; 00152 string Array; 00153 string Antenna; 00154 string MsgData; 00155 00159 NameValueSeq attributes; 00160 NameValueSeq log_data; 00161 00162 }; 00163 00164 }; 00165 00166 00167 #endif

Generated on Thu Apr 30 02:26:27 2009 for ACS IDL interfaces by doxygen 1.3.8