Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

LogExtensions.idl

Go to the documentation of this file.
00001 #ifndef OF_LOGGING_IDL
00002 #define OF_LOGGING_IDL
00003 
00004 #include <DsLogAdmin.idl>
00005 
00011 #pragma prefix "prismt.com/cos/CosLogging"
00012 
00013 module LogExtensions
00014 {
00015    // These constants must be this case otherwise it breaks the
00016    // Microsoft compiler.
00017    const short Info    = 0;
00018    const short Debug   = 1;
00019    const short Warning = 2;
00020    const short Error   = 3;
00021    const short Fatal   = 4;
00022 
00023    // Applications may define other categories.
00024 
00036 /* doc: coslog 34 */
00037    struct LogInfo
00038    {
00039       string category; // user-defined category
00040       long priority;   // log info priority (or error code)
00041       string message;  // general error message
00042       string details;  // details (e.g. Java stack trace)
00043    };
00044 /* enddoc */
00045 
00049    interface Logging
00050    {
00058       void log (in LogInfo info);
00059    };
00060 
00061 }; // LogExtensions
00062 
00063 #endif /* OF_LOGGING_IDL */