Hata/uyarı/bilgi/hata ayıklama/ayrıntılı günlük kaydı için basit bir arayüz.
Hata/uyarı/bilgi/hata ayıklama/ayrıntılı günlük kaydı için basit bir arayüz.
Varsayılan olarak, Google Etiket Yöneticisi hata/uyarı mesajlarını günlüğe kaydeder ve bilgi/hata ayıklama/ayrıntılı mesajları yoksayar. setLogger(Logger) yöntemini çağırarak kendi günlük kaydedicinizi yükleyebilir veya TagManager.getLogger().setLogLevel(level); yöntemini çağırarak kendi günlük düzeyinizi ayarlayabilirsiniz.
herkese açık
soyut
void
i(Dize mesaj, Atılabilir t)
Günlüğe bir bilgi mesajı kaydeder.
herkese açık
soyut
void
i(Dize mesaj)
Günlüğe bir bilgi mesajı kaydeder.
herkese açık
soyut
void
setLogLevel(Logger.LogLevellogLevel)
Günlük düzeyini ayarlar. Günlük düzeyinin nasıl kullanıldığı uygulamaya bağlıdır ancak günlük düzeyi dışındaki günlük mesajlarının çıkışı alınmamalıdır.
herkese açık
soyut
void
v(Dize mesaj, Atılabilir t)
Ayrıntılı bir mesaj günlüğe kaydeder.
herkese açık
soyut
void
v(Dize mesaj)
Ayrıntılı bir mesaj günlüğe kaydeder.
herkese açık
soyut
void
w(Dize mesaj, Atılabilir t)
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eLogger\u003c/code\u003e is a simple interface for logging error, warning, info, debug, and verbose messages within Google Tag Manager.\u003c/p\u003e\n"],["\u003cp\u003eBy default, Google Tag Manager logs errors and warnings, while ignoring info, debug, and verbose messages.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can customize logging behavior by implementing the \u003ccode\u003eLogger\u003c/code\u003e interface and setting it using \u003ccode\u003eTagManager.setLogger(Logger)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe logging level can be adjusted using \u003ccode\u003eTagManager.getLogger().setLogLevel(level)\u003c/code\u003e to control the types of messages that are output.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogger\u003c/code\u003e interface provides methods for logging messages at different levels: \u003ccode\u003ed\u003c/code\u003e (debug), \u003ccode\u003ee\u003c/code\u003e (error), \u003ccode\u003ei\u003c/code\u003e (info), \u003ccode\u003ev\u003c/code\u003e (verbose), and \u003ccode\u003ew\u003c/code\u003e (warning), with optional \u003ccode\u003eThrowable\u003c/code\u003e parameters for exceptions.\u003c/p\u003e\n"]]],["The `Logger` interface provides methods for logging messages at various levels: debug (`d`), error (`e`), info (`i`), verbose (`v`), and warning (`w`). Each logging method accepts a message string and optionally a `Throwable` object. It also allows setting and getting the current log level via `setLogLevel` and `getLogLevel`, respectively. Users can install their own logger with `setLogger()` or adjust the log level using `TagManager.getLogger().setLogLevel()`.\n"],null,[]]