-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set LIBSASS_TRACE to any value in the environment to watch a very verbose output live. Conflicts: Makefile Makefile.am src/debug.hpp src/util.cpp win/libsass.vcxproj
- Loading branch information
Showing
5 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <stdio.h> | ||
#include <sstream> | ||
|
||
#include "debug.hpp" | ||
|
||
namespace Sass { | ||
|
||
Log::Log() {} | ||
|
||
std::ostringstream& Log::Get(TLogLevel level, void *p, const char *f, const char *filen, int lineno) | ||
{ | ||
os << "[LIBSASS] " << p << ":" << f << " " << filen << ":" << lineno << " "; | ||
messageLevel = level; | ||
return os; | ||
} | ||
std::ostringstream& Log::Get(TLogLevel level, const char *f, const char *filen, int lineno) | ||
{ | ||
os << "[LIBSASS] " << f << " " << filen << ":" << lineno << " "; | ||
messageLevel = level; | ||
return os; | ||
} | ||
Log::~Log() | ||
{ | ||
os << std::endl; | ||
fprintf(stderr, "%s", os.str().c_str()); | ||
fflush(stderr); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters