
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
LLM Logger is a Python logging framework designed for seamless integration with Large Language Models (LLMs).
It produces structured, LLM-friendly logs that can be easily summarized or reasoned about — even across massive, deeply nested codebases.
reason
, inputs
, outputs
, and semantic tagsstart_group
, end_group
) and function spansOllama
(local models)Groq
(LLama, Gemma via API)OpenAI
(GPT-3.5 / GPT-4)pip install ailogx
from ailogx.core import LLMLogger
log = LLMLogger("my-service")
log.llm_info("User login started", inputs={"username": "admin"})
log.llm_decision("Using 2FA", reason="high-risk user")
log.llm_error("Login failed", reason="Invalid OTP")
with log.function_span("process_payment", reason="checkout flow"):
# your logic
pass
log.start_group("req-42", reason="incoming API request")
# your logs here
log.end_group("req-42")
Supports:
LLM_LOGGER_BACKEND=ollama
(default)LLM_LOGGER_BACKEND=groq
LLM_LOGGER_BACKEND=openai
export LLM_LOGGER_BACKEND=groq # or 'openai', 'ollama'
export GROQ_API_KEY="your-groq-api-key"
- You must have a Groq account.
- Supported models: gemma3, llama3-70b, etc.
export OPENAI_API_KEY="your-openai-api-key"
- You must have an OpenAI API key.Models like gpt-3.5-turbo, gpt-4, etc. are supported.
For selecting Models :
| Backend | Env Var to Set | Example Value |
|----------|----------------|-----------------------|
| groq | GROQ_MODEL | llama-3-70b-8192 |
| openai | OPENAI_MODEL | gpt-4o |
| ollama | OLLAMA_MODEL | llama3 |
python -m ailogx.summarize simulated_logs/deep_nested_logs.jsonl --filter=smart --fast
For using with relevant intent:
python -m ailogx.summarize huge_app_logs.jsonl --filter=smart --fast --intent "focus on authentication and signup failures"
Or call from Python:
from ailogx.summarizer.summarizer import multi_pass_summarize
from ailogx.backends.registry import get_analyzer
import json
with open("llm_logs.jsonl") as f:
logs = [json.loads(line) for line in f]
summary = multi_pass_summarize(logs, get_analyzer())
print(summary)
Generate deep, nested logs for benchmarking:
python ailogx/core.py
Outputs:
llm_simulated_logs.jsonl
(LLMLogger)standard_simulated_logs.log
(Python logging).cache/
--filter=smart
, --intent="auth errors"
)--fast
mode for shallow summaries before full deep divesFAQs
LLM-optimized structured logging and summarization for large-scale debugging.
We found that ailogx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.