मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)16k · #10841

add-logging

यह क्या करती है

यह स्किल कोड शिप होने से पहले उसमें उपयोगी log lines जोड़ती है, ताकि बाद में समस्याएँ समझी जा सकें। यह उन डेवलपर्स के लिए है जो बिना देखे डीबग करने से बचना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप कोई फ़ीचर या fix लिख या जाँच रहे हों और उसमें अच्छे logs चाहिए।
  • ✓जब कोई बग पकड़ना मुश्किल था क्योंकि logs चुप थे।
  • ✓जब किसी code path में सुधार करना हो जो बदलने वाला है और उसके logs बेहतर करने हों।

Skill का लिंक

https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/add-logging/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/add-logging/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे checkout बदलाव में logging जोड़िए, ताकि बाद में पता चल सके कि भुगतान बैकअप रूट पर क्यों गया।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट प्रोजेक्ट की पहले से इस्तेमाल हो रही logging शैली अपनाता है, फिर हर विफलता और व्यवहार बदलने वाले फ़ैसले के लिए एक line जोड़ता है। वह पूरे डेटा के बजाय IDs लॉग करता है और गुप्त जानकारी logs से बाहर रखता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Log what you will need to ask about

Every investigation in Sazabi is limited by what the code logged. The cheapest time to add the right lines is while the change is fresh. The job is a small number of structured lines that answer "what happened to this request, and why".

0. How the tools work

The Sazabi MCP server lists only two tools, search and execute. Browse Sazabi's operations with search and namespace: "sazabi" (an empty query without a namespace lists connected connectors, not Sazabi operations). Before calling one, repeat search with namespace: "sazabi", the hit's full name as the query, and includeInputSchema: true to load its arguments. Then run it with execute as { name, arguments }, the name copied from the hit (for example sazabi/logs.ask).

1. Match what is already there

Read how this repository logs: which logger, which field names, how request and trace IDs are attached. Ask sazabi/logs.ask for a sample of this service's recent lines to see the real shape. New lines must look like their neighbors; an investigation that has to join two naming schemes is slower.

2. Pick the lines

On the changed path, log:

  • Failures with the error, the input that caused it (IDs, not payloads), and what the code did next (retry, fallback, give up).
  • Decisions that change behavior: a feature flag, a fallback, a skipped step, a limit hit.
  • Boundaries: calls to other services or queues, with target, outcome and duration.

Skip lines that restate the obvious ("entering function").

3. Shape each line

  • A stable event name (checkout.payment_declined), so a question can count it.
  • Structured fields, not values glued into the message string.
  • IDs that join the story: request or trace ID, user or tenant ID, order ID.
  • The right level: ERROR for failures someone must act on, WARN for degraded but handled, INFO for decisions, DEBUG for detail that is off in production.
  • Never secrets, tokens, passwords or full personal data. Redact or omit.

4. Check it

Run the path locally or in tests and read the lines it emits. After deploy, ask Sazabi for the new event name to confirm the lines arrive with their fields.

Anti-patterns

  • Logging payloads. They leak data and cost money; log IDs and sizes.
  • ERROR for expected outcomes. A declined card is INFO; an ERROR should mean a broken system.
  • Many lines per request in a hot loop. Log the summary, not every iteration.
अक्सर पूछे जाने वाले सवाल

क्या logs में ग्राहक का डेटा होगा?

नहीं। स्किल पूरे payload के बजाय IDs लॉग करती है और गुप्त जानकारी logs से बाहर रखती है।

क्या यह प्रोजेक्ट की मौजूदा शैली मानती है?

हाँ। वह पहले देखती है कि कोड पहले से कैसे लॉग करता है, ताकि नई lines उनके आसपास की lines जैसी हों।

शिप करने से पहले logs क्यों जोड़ें?

जाँच उतनी ही अच्छी होती है जितना लॉग हुआ है, और बदलाव ताज़ा होते समय सही lines जोड़ना सबसे सस्ता पड़ता है।

जानकारी

लेखक का मूल विवरण

Before shipping a change, add structured log lines to the code path it touches so the next investigation has evidence — one line per decision and failure, with stable event names and the IDs needed to join requests, at the right level and without secrets. Use when writing or reviewing a feature or fix, when a bug was hard to diagnose because the logs were silent, or when the user asks to improve logging or observability in code.

repo: ParadevAI/Paradev

लोकप्रियता

GitHub स्टार
16k
रैंकिंग में स्थान
#10841
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

decide

16k

डिज़ाइन या कोड के फ़ैसले एक-एक करके, साफ़ विकल्पों और सुझाव के साथ आपसे तय करवाती है। हर जवाब दर्ज होता है और अंत में सारांश मिलता है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

mobile-demo-film

16k

फ़ोन स्क्रीन रिकॉर्डिंग को शीर्षक कार्ड, फ़ोन फ़्रेम और अंत कार्ड के साथ सुंदर डेमो वीडियो में बदलती है। फ़ीचर डेमो और लॉन्च क्लिप के लिए अच्छी।

वीडियो और ऑडियोवीडियो एडिटिंग

redesign

16k

मौजूदा इंटरफ़ेस कॉम्पोनेंट की समीक्षा करती है और स्पेसिंग, कंट्रास्ट, क्रम और लेआउट के ठोस विज़ुअल सुधार सुझाती है। बदलाव लागू भी कर सकती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

superset-settings

16k

आपके एजेंट को Paradev डेस्कटॉप ऐप की सेटिंग्स, जैसे थीम, फ़ॉन्ट और सूचनाएँ, कमांड लाइन से देखने और बदलने देती है।

अन्यविविध

मिलती-जुलती skills