Changeset 2102 for box/trunk/lib/common/Logging.cpp
- Timestamp:
- 01/03/2008 22:54:56 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/lib/common/Logging.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/common/Logging.cpp
r2092 r2102 149 149 } 150 150 151 void Logging::LogToSyslog(Log::Level level, const std::string& rFile, 152 int line, const std::string& rMessage) 153 { 154 if (!sLogToSyslog) 155 { 156 return; 157 } 158 159 if (level > sGlobalLevel) 160 { 161 return; 162 } 163 164 std::string newMessage; 165 166 if (sContextSet) 167 { 168 newMessage += "[" + sContext + "] "; 169 } 170 171 newMessage += rMessage; 172 173 spSyslog->Log(level, rFile, line, newMessage); 174 } 175 151 176 void Logging::SetContext(std::string context) 152 177 {
Note: See TracChangeset
for help on using the changeset viewer.
