27 #ifndef SBERRORCONSOLE_H_
28 #define SBERRORCONSOLE_H_
30 #include <nsStringAPI.h>
33 #include <nsIScriptError.h>
36 #include <nsComponentManagerUtils.h>
57 nsAString
const & aSource,
59 nsAString
const & aMessage,
60 nsACString
const & aCategory) :
mFlags(aFlags),
71 static void Error(
char const * aCategory,
72 nsAString
const & aMessage,
73 nsAString
const & aSource = nsString(),
75 static void Warning(
char const * aCategory,
76 nsAString
const & aMessage,
77 nsAString
const & aSource = nsString(),
79 static void Message(
char const * aFmt, ...);
81 enum { infoMessageFlag = ~0UL };
82 nsresult Log(nsACString
const & aCategory,
84 nsAString
const & aMessage,
85 nsAString
const & aSource,
87 nsresult LogThread(ErrorParams aParameters);
ErrorParams(PRUint32 aFlags, nsAString const &aSource, PRUint32 aLine, nsAString const &aMessage, nsACString const &aCategory)
static void Warning(char const *aCategory, nsAString const &aMessage, nsAString const &aSource=nsString(), PRUint32 aLine=0)
static void Error(char const *aCategory, nsAString const &aMessage, nsAString const &aSource=nsString(), PRUint32 aLine=0)
Songbird Thread Utilities Definitions.
static void Message(char const *aFmt,...)