diff --git a/core/errs/fmt_text.go b/core/errs/fmt_text.go index 9409188..ccbd57d 100644 --- a/core/errs/fmt_text.go +++ b/core/errs/fmt_text.go @@ -51,7 +51,7 @@ type ( func NewFmtText(options ...FmtTextFnc) *FmtText { return applyFmtTextOptions(&FmtText{ - FmtTextAtt: FmtTextAttIndent | FmtTextAttVerbose | FmtTextAttTrace, + FmtTextAtt: FmtTextAttIndent | FmtTextAttVerbose | FmtTextAttTrace | FmtTextAttColors, indent : " ", traceFmt : formatStackTrace , }, options...) } diff --git a/core/errs/fmt_text_att.go b/core/errs/fmt_text_att.go index 909a290..438b167 100644 --- a/core/errs/fmt_text_att.go +++ b/core/errs/fmt_text_att.go @@ -30,6 +30,7 @@ const( FmtTextAttEmpty FmtTextAttIndent FmtTextAttTrace + FmtTextAttColors ) @@ -52,4 +53,7 @@ func (a FmtTextAtt) UseIndent () bool { return a&FmtTextAttIndent != 0 } func (a FmtTextAtt) AddStackTrace () bool { - return a&FmtTextAttTrace != 0 } \ No newline at end of file + return a&FmtTextAttTrace != 0 } + +func (a FmtTextAtt) UseColors () bool { + return a&FmtTextAttColors != 0 } \ No newline at end of file