• 首页
  • Qt文档
  • DTK文档
  • 玲珑文档
  • consoleappender_zh

    Class::ConsoleAppender

    暂无该属性


    Detailed Description

    ConsoleAppender is the simple appender that writes the log records to the std::cerr output stream. ConsoleAppender uses "[%{type:-7}] <%{function}> %{message}\n" as a default output format. It is similar to the AbstractStringAppender but doesn't show a timestamp.

    You can modify ConsoleAppender output format without modifying your code by using QT_MESSAGE_PATTERN environment variable. If you need your application to ignore this environment variable you can call ConsoleAppender::ignoreEnvironmentPattern (true)

    ConsoleAppender::ConsoleAppender

    [public constructor  ]

    ConsoleAppender()

    ConsoleAppender::format

    [public plain  virtual]

    QString format() const

    ConsoleAppender::ignoreEnvironmentPattern

    [public plain  ]

    void ignoreEnvironmentPattern(bool ignore)

    ConsoleAppender::append

    [protected plain  virtual]

    void append(const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message) See also AbstractStringAppender::format()