Usage of Slog?

  • 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.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks