wxLog::wxLog()
{
m_bHasMessages = FALSE;
- m_bVerbose = FALSE;
+
+ // enable verbose messages by default in the debug builds
+#ifdef __WXDEBUG__
+ m_bVerbose = TRUE;
+#else // release
+ m_bVerbose = FALSE;
+#endif // debug/release
+
m_szTimeFormat = "[%d/%b/%y %H:%M:%S] ";
}
{
switch ( level ) {
case wxLOG_Info:
- case wxLOG_Message:
if ( GetVerbose() )
+ case wxLOG_Message:
if ( !m_bErrors ) {
m_aMessages.Add(szString);
m_bHasMessages = TRUE;
s_bInAssert = TRUE;
char szBuf[LOG_BUFFER_SIZE];
+
+ // make life easier for people using VC++ IDE: clicking on the message will
+ // take us immediately to the place of the failed assert
+#ifdef __VISUALC__
+ sprintf(szBuf, _("%s(%d): assert failed"), szFile, nLine);
+#else // !VC++
+ // make the error message more clear for all the others
sprintf(szBuf, _("Assert failed in file %s at line %d"), szFile, nLine);
+#endif // VC/!VC
+
if ( szMsg != NULL ) {
strcat(szBuf, ": ");
strcat(szBuf, szMsg);