Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ttiimm/log2src
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: tstack/log2src
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 18 files changed
  • 2 contributors

Commits on Oct 25, 2026

  1. Annotate extracted log statements with their log level

    Keep the logging call name captured before the format string in each
    language's query and normalize it (e.g. log::warn, logger.warning,
    spdlog::info, SPDLOG_ERROR) to a LogLevel on SourceRef. The level is
    serialized as an optional "level" field in the srcRef output.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_014JycCPeVRxuveoeMtHnJmt
    claude committed Oct 25, 2026
    Configuration menu
    Copy the full SHA
    a834f52 View commit details
    Browse the repository at this point in the history
  2. Derive log levels from C/C++ names like log_debug and level arguments

    Names made of words joined by underscores, like lnav's log_debug() or
    SPDLOG_INFO, map to the level at the end as long as another word looks
    logging related.  Arguments before the format string, as in
    syslog(LOG_ERR, ...) or spdlog::log(spdlog::level::warn, ...), are also
    checked for a level and take precedence over the call name.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_014JycCPeVRxuveoeMtHnJmt
    claude committed Oct 25, 2026
    Configuration menu
    Copy the full SHA
    8951551 View commit details
    Browse the repository at this point in the history
  3. Tighten log level detection and use it when linking

    - Only take level constants from leading arguments that are names, so a
      string literal like "conn error" no longer sets the level of a later
      string in the same call.
    - Require leading arguments to be qualified by something logging
      related (LOG_ERR, logging.WARNING, spdlog::level::warn), so a variable
      like `err` no longer overrides the call name.
    - Require the qualifier of a call like `x.error` to look logging
      related, so warnings.warn and parser.error don't get a level.
    - Split names on case changes so logInfo and LogWarning are recognized.
    - Let the Java query match severe/fatal and log.log(Level.X, ...).
    - Match level-first calls in Python (logger.log(logging.WARNING, ...))
      and Rust (log!(Level::Warn, ...), tracing::event!(Level::INFO, ...)).
    - Parse the level from log messages and prefer source statements with
      the same level when candidates have the same quality.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_01VN7ZsUqHrHHcBHoxTnSpjb
    claude committed Oct 25, 2026
    Configuration menu
    Copy the full SHA
    07dd371 View commit details
    Browse the repository at this point in the history
  4. [GitHub] Disable the VS Code extension test job

    The job fails before any test runs because @vscode/test-electron can't
    find the Electron binary in the current VS Code macOS download.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_014JycCPeVRxuveoeMtHnJmt
    claude committed Oct 25, 2026
    Configuration menu
    Copy the full SHA
    85c891f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2026

  1. Give statements an Unknown level instead of an optional one

    Every extracted statement now has a level.  Calls where we can't tell
    the level, which might not be logging at all (printf, println!, print,
    or any call that takes a string), get LogLevel::Unknown, and the
    "level" field is always present in the srcRef output.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_014JycCPeVRxuveoeMtHnJmt
    claude committed Oct 26, 2026
    Configuration menu
    Copy the full SHA
    79a5503 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2 from tstack/claude/project-thread-7q2zqh

    Annotate extracted log statements with their log level
    tstack authored Oct 26, 2026
    Configuration menu
    Copy the full SHA
    23eb0ae View commit details
    Browse the repository at this point in the history
Loading