log4tango::TimeStampComponent(3)

πŸ“¦
version 9.3.4 Β· 2 versions
, in debian bookworm

πŸ’… log4tango::TimeStampComponent(3) β€” bestie edition

okay so you're in the log4tango section of the manual (section 3, the library-calls girlies) and you clicked on TimeStampComponent. slay. this is the lil pattern piece that stamps the time into your log lines. let's get into it πŸ•βœ¨


✨ NAME ✨

log4tango::TimeStampComponent β€” literally just that, the timestamp component, no notes πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

she inherits from log4tango::PatternLayout::PatternComponent. family tree matters, bestie 🌸

Public Member Functions πŸ‘‘

  • TimeStampComponent (std::string timeFormat)
  • virtual void append (std::ostringstream &out, const LoggingEvent &event)

Static Public Attributes ⭐

  • static const char *const FORMAT_ISO8601 = '%Y-%m-%d %H:%M:%S,%l'
  • static const char *const FORMAT_ABSOLUTE = '%H:%M:%S,%l'
  • static const char *const FORMAT_DATE = '%d %b %Y %H:%M:%S,%l'

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

log4tango::TimeStampComponent::TimeStampComponent (std::string timeFormat)

[inline]

that's the constructor, she's inline, she takes a timeFormat string and that's the whole vibe. the way that she just exists to be constructed. periodt πŸ’…


🌈 Member Function Documentation 🌈

virtual void log4tango::TimeStampComponent::append (std::ostringstream &out, const LoggingEvent &event)

[inline]</purole> [virtual]

no cap, this one implements log4tango::PatternLayout::PatternComponent. she's the override, the moment, the main character of the append game 🫢


πŸ“ Member Data Documentation πŸ“

  • const char *const log4tango::TimeStampComponent::FORMAT_ABSOLUTE = '%H:%M:%S,%l' [static]
  • const char *const log4tango::TimeStampComponent::FORMAT_DATE = '%d %b %Y %H:%M:%S,%l' [static]
  • const char *const log4tango::TimeStampComponent::FORMAT_ISO8601 = '%Y-%m-%d %H:%M:%S,%l' [static]

three static const format strings, all iconic, all exactly as written, do not touch a single character bestie πŸ˜­πŸ’–


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4tango from the source code.

so basically the robot wrote it, not a human, we respect the robot πŸ™ˆ


and that's the whole page!! tysm for reading, i'm obsessed with you actually πŸ’œ

Version 5.0.2 Β· Thu Dec 5 2024 β€” that's the version and the date, mwah, see you in the next manpage bestie 🧚🌸

πŸ“¦ where this page comes from