Skip to content

Commit

Permalink
Added missing files for boost.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Sep 30, 2010
1 parent a2a3a60 commit 926c044
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
Binary file added libs/log/src/MSG00001.bin
Binary file not shown.
95 changes: 95 additions & 0 deletions libs/log/src/simple_event_log.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* Copyright Andrey Semashev 2007 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* This file is the Boost.Log library implementation, see the library documentation
* at http://www.boost.org/libs/log/doc/log.html.
*/

/* --------------------------------------------------------
* HEADER SECTION
*/



/* ------------------------------------------------------------------
* MESSAGE DEFINITION SECTION
*/
//
// Values are 32 bit values laid out as follows:
//
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
// +---+-+-+-----------------------+-------------------------------+
// |Sev|C|R| Facility | Code |
// +---+-+-+-----------------------+-------------------------------+
//
// where
//
// Sev - is the severity code
//
// 00 - Success
// 01 - Informational
// 10 - Warning
// 11 - Error
//
// C - is the Customer code flag
//
// R - is a reserved bit
//
// Facility - is the facility code
//
// Code - is the facility's status code
//
//
// Define the facility codes
//


//
// Define the severity codes
//
#define BOOST_LOG_SEVERITY_WARNING 0x2
#define BOOST_LOG_SEVERITY_INFO 0x1
#define BOOST_LOG_SEVERITY_ERROR 0x3
#define BOOST_LOG_SEVERITY_DEBUG 0x0


//
// MessageId: BOOST_LOG_MSG_DEBUG
//
// MessageText:
//
// %1
//
#define BOOST_LOG_MSG_DEBUG ((DWORD)0x00000100L)

//
// MessageId: BOOST_LOG_MSG_INFO
//
// MessageText:
//
// %1
//
#define BOOST_LOG_MSG_INFO ((DWORD)0x40000101L)

//
// MessageId: BOOST_LOG_MSG_WARNING
//
// MessageText:
//
// %1
//
#define BOOST_LOG_MSG_WARNING ((DWORD)0x80000102L)

//
// MessageId: BOOST_LOG_MSG_ERROR
//
// MessageText:
//
// %1
//
#define BOOST_LOG_MSG_ERROR ((DWORD)0xC0000103L)

2 changes: 2 additions & 0 deletions libs/log/src/simple_event_log.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LANGUAGE 0x9,0x1
1 11 "MSG00001.bin"

0 comments on commit 926c044

Please sign in to comment.