Menu

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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.