Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Usage of Slog?

Help
2005-01-23
2012-11-20
  • Scot Wilcoxon
    Scot Wilcoxon
    2005-01-23

    How is the following supposed to be used?  Only doc is below, and no example in slogTest.cpp.  Maybe "slog.error() << "message" << endl" ?

    Slog& Slog::error      (       void              )        [inline]

     
    • David Sugar
      David Sugar
      2005-01-28

      Yes, you would use, either:

      slog.error() << "myslog " << errno << endl;

      or you can alternately do:

      slog.error("myslog %d", errno);

      as a varargs version also exists.