import{s as Dr,o as Or,n as Fr}from"../chunks/scheduler.9991993c.js";import{S as Br,i as Gr,g as o,s,r as f,m as Zr,A as jr,h as i,f as t,c as l,j as _,u as d,x as a,n as qr,k as h,y as g,a as n,v as p,d as u,t as c,w as b}from"../chunks/index.7fc9a5e7.js";import{T as zr}from"../chunks/Tip.9de92fc6.js";import{D as w}from"../chunks/Docstring.0d7e3ebb.js";import{C as ze}from"../chunks/CodeBlock.e11cba92.js";import{E as Xr}from"../chunks/ExampleCodeBlock.46b9776a.js";import{H as Ft,E as Yr}from"../chunks/EditOnGithub.84ab7f0e.js";function Kr(we){let $,I="🤗 Transformers has following logging levels:",y,v,x="<li>50: <code>transformers.logging.CRITICAL</code> or <code>transformers.logging.FATAL</code></li> <li>40: <code>transformers.logging.ERROR</code></li> <li>30: <code>transformers.logging.WARNING</code> or <code>transformers.logging.WARN</code></li> <li>20: <code>transformers.logging.INFO</code></li> <li>10: <code>transformers.logging.DEBUG</code></li>";return{c(){$=o("p"),$.textContent=I,y=s(),v=o("ul"),v.innerHTML=x},l(m){$=i(m,"P",{"data-svelte-h":!0}),a($)!=="svelte-xr075s"&&($.textContent=I),y=l(m),v=i(m,"UL",{"data-svelte-h":!0}),a(v)!=="svelte-1s22l0g"&&(v.innerHTML=x)},m(m,T){n(m,$,T),n(m,y,T),n(m,v,T)},p:Fr,d(m){m&&(t($),t(y),t(v))}}}function Qr(we){let $,I="Enable explicit formatting for every HuggingFace Transformers’s logger. The explicit formatter is as follows:",y,v,x;return v=new ze({props:{code:"JTIwJTIwJTIwJTIwJTVCTEVWRUxOQU1FJTdDRklMRU5BTUUlN0NMSU5FJTIwTlVNQkVSJTVEJTIwVElNRSUyMCUzRSUzRSUyME1FU1NBR0U=",highlighted:'    [LEVELNAME|<span class="hljs-type">FILENAME</span>|<span class="hljs-type">LINE</span> NUMBER] TIME &gt;&gt; MESSAGE',wrap:!1}}),{c(){$=o("p"),$.textContent=I,y=s(),f(v.$$.fragment)},l(m){$=i(m,"P",{"data-svelte-h":!0}),a($)!=="svelte-1db65t5"&&($.textContent=I),y=l(m),d(v.$$.fragment,m)},m(m,T){n(m,$,T),n(m,y,T),p(v,m,T),x=!0},p:Fr,i(m){x||(u(v.$$.fragment,m),x=!0)},o(m){c(v.$$.fragment,m),x=!1},d(m){m&&(t($),t(y)),b(v,m)}}}function en(we){let $,I,y,v,x,m,T,ar="🤗 Transformers拥有一个集中式的日志系统，因此您可以轻松设置库输出的日志详细程度。",Xe,O,mr="当前库的默认日志详细程度为<code>WARNING</code>。",Ye,B,fr="要更改日志详细程度，只需使用其中一个直接的setter。例如，以下是如何将日志详细程度更改为INFO级别的方法：",Ke,G,Qe,Z,dr="您还可以使用环境变量<code>TRANSFORMERS_VERBOSITY</code>来覆盖默认的日志详细程度。您可以将其设置为以下级别之一：<code>debug</code>、<code>info</code>、<code>warning</code>、<code>error</code>、<code>critical</code>。例如：",et,j,tt,q,pr="此外，通过将环境变量<code>TRANSFORMERS_NO_ADVISORY_WARNINGS</code>设置为<code>true</code>（如<em>1</em>），可以禁用一些<code>warnings</code>。这将禁用<code>logger.warning_advice</code>记录的任何警告。例如：",rt,z,nt,X,ur="以下是如何在您自己的模块或脚本中使用与库相同的logger的示例：",st,Y,lt,K,cr='此日志模块的所有方法都在下面进行了记录，主要的方法包括 <a href="/docs/transformers/pr_30021/zh/main_classes/logging#transformers.utils.logging.get_verbosity">logging.get_verbosity()</a> 用于获取logger当前输出日志详细程度的级别和 <a href="/docs/transformers/pr_30021/zh/main_classes/logging#transformers.utils.logging.set_verbosity">logging.set_verbosity()</a> 用于将详细程度设置为您选择的级别。按照顺序（从最不详细到最详细），这些级别（及其相应的整数值）为：',ot,Q,br="<li><code>transformers.logging.CRITICAL</code> 或 <code>transformers.logging.FATAL</code>（整数值，50）：仅报告最关键的errors。</li> <li><code>transformers.logging.ERROR</code>（整数值，40）：仅报告errors。</li> <li><code>transformers.logging.WARNING</code> 或 <code>transformers.logging.WARN</code>（整数值，30）：仅报告error和warnings。这是库使用的默认级别。</li> <li><code>transformers.logging.INFO</code>（整数值，20）：报告error、warnings和基本信息。</li> <li><code>transformers.logging.DEBUG</code>（整数值，10）：报告所有信息。</li>",it,ee,$r='默认情况下，将在模型下载期间显示<code>tqdm</code>进度条。<a href="/docs/transformers/pr_30021/zh/main_classes/logging#transformers.utils.logging.disable_progress_bar">logging.disable_progress_bar()</a> 和 <a href="/docs/transformers/pr_30021/zh/main_classes/logging#transformers.utils.logging.enable_progress_bar">logging.enable_progress_bar()</a> 可用于禁止或启用此行为。',gt,te,at,re,vr="Python有两个经常一起使用的日志系统：如上所述的<code>logging</code>，和对特定buckets中的警告进行进一步分类的<code>warnings</code>，例如，<code>FutureWarning</code>用于输出已经被弃用的功能或路径，<code>DeprecationWarning</code>用于指示即将被弃用的内容。",mt,ne,_r="我们在<code>transformers</code>库中同时使用这两个系统。我们利用并调整了<code>logging</code>的<code>captureWarning</code>方法，以便通过上面的详细程度setters来管理这些警告消息。",ft,se,hr="对于库的开发人员，这意味着什么呢？我们应该遵循以下启发法则：",dt,le,yr="<li>库的开发人员和依赖于<code>transformers</code>的库应优先使用<code>warnings</code></li> <li><code>logging</code>应该用于在日常项目中经常使用它的用户</li>",pt,oe,xr="以下是<code>captureWarnings</code>方法的参考。",ut,C,ie,Dt,Le,Tr=`Calls the <code>captureWarnings</code> method from the logging library to enable management of the warnings emitted by the
<code>warnings</code> library.`,Ot,Me,Cr=`Read more about this method here:
<a href="https://docs.python.org/3/library/logging.html#integration-with-the-warnings-module" rel="nofollow">https://docs.python.org/3/library/logging.html#integration-with-the-warnings-module</a>`,Bt,Re,wr="All warnings will be logged through the <code>py.warnings</code> logger.",Gt,Ee,Lr=`Careful: this method also adds a handler to this logger if it does not already have one, and updates the logging
level of that logger to the library’s root logger.`,ct,ge,bt,H,ae,Zt,Ie,Mr="Set the verbosity to the <code>ERROR</code> level.",$t,J,me,jt,Ne,Rr="Set the verbosity to the <code>WARNING</code> level.",vt,P,fe,qt,He,Er="Set the verbosity to the <code>INFO</code> level.",_t,V,de,zt,Je,Ir="Set the verbosity to the <code>DEBUG</code> level.",ht,pe,yt,M,ue,Xt,Pe,Nr="Return the current level for the 🤗 Transformers’s root logger as an int.",Yt,F,xt,U,ce,Kt,Ve,Hr="Set the verbosity level for the 🤗 Transformers’s root logger.",Tt,R,be,Qt,Ue,Jr="Return a logger with the specified name.",er,Ae,Pr="This function is not supposed to be directly accessed unless you are writing a custom transformers module.",Ct,A,$e,tr,Se,Vr="Enable the default handler of the HuggingFace Transformers’s root logger.",wt,S,ve,rr,We,Ur="Disable the default handler of the HuggingFace Transformers’s root logger.",Lt,N,_e,nr,D,sr,Mt,E,he,lr,ke,Ar="Resets the formatting for HuggingFace Transformers’s loggers.",or,Fe,Sr="All handlers currently bound to the root logger are affected by this method.",Rt,W,ye,ir,De,Wr="Enable tqdm progress bar.",Et,k,xe,gr,Oe,kr="Disable tqdm progress bar.",It,Te,Nt,je,Ht;return x=new Ft({props:{title:"Logging",local:"logging",headingTag:"h1"}}),G=new ze({props:{code:"aW1wb3J0JTIwdHJhbnNmb3JtZXJzJTBBJTBBdHJhbnNmb3JtZXJzLmxvZ2dpbmcuc2V0X3ZlcmJvc2l0eV9pbmZvKCk=",highlighted:`<span class="hljs-keyword">import</span> transformers

transformers.logging.set_verbosity_info()`,wrap:!1}}),j=new ze({props:{code:"VFJBTlNGT1JNRVJTX1ZFUkJPU0lUWSUzRGVycm9yJTIwLiUyRm15cHJvZ3JhbS5weQ==",highlighted:"TRANSFORMERS_VERBOSITY=error ./myprogram.py",wrap:!1}}),z=new ze({props:{code:"VFJBTlNGT1JNRVJTX05PX0FEVklTT1JZX1dBUk5JTkdTJTNEMSUyMC4lMkZteXByb2dyYW0ucHk=",highlighted:"TRANSFORMERS_NO_ADVISORY_WARNINGS=1 ./myprogram.py",wrap:!1}}),Y=new ze({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy51dGlscyUyMGltcG9ydCUyMGxvZ2dpbmclMEElMEFsb2dnaW5nLnNldF92ZXJib3NpdHlfaW5mbygpJTBBbG9nZ2VyJTIwJTNEJTIwbG9nZ2luZy5nZXRfbG9nZ2VyKCUyMnRyYW5zZm9ybWVycyUyMiklMEFsb2dnZXIuaW5mbyglMjJJTkZPJTIyKSUwQWxvZ2dlci53YXJuaW5nKCUyMldBUk4lMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers.utils <span class="hljs-keyword">import</span> logging

logging.set_verbosity_info()
logger = logging.get_logger(<span class="hljs-string">&quot;transformers&quot;</span>)
logger.info(<span class="hljs-string">&quot;INFO&quot;</span>)
logger.warning(<span class="hljs-string">&quot;WARN&quot;</span>)`,wrap:!1}}),te=new Ft({props:{title:"logging vs warnings",local:"transformers.utils.logging.captureWarnings",headingTag:"h2"}}),ie=new w({props:{name:"transformers.utils.logging.captureWarnings",anchor:"transformers.utils.logging.captureWarnings",parameters:[{name:"capture",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L124"}}),ge=new Ft({props:{title:"Base setters",local:"transformers.utils.logging.set_verbosity_error",headingTag:"h2"}}),ae=new w({props:{name:"transformers.utils.logging.set_verbosity_error",anchor:"transformers.utils.logging.set_verbosity_error",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L218"}}),me=new w({props:{name:"transformers.utils.logging.set_verbosity_warning",anchor:"transformers.utils.logging.set_verbosity_warning",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L208"}}),fe=new w({props:{name:"transformers.utils.logging.set_verbosity_info",anchor:"transformers.utils.logging.set_verbosity_info",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L203"}}),de=new w({props:{name:"transformers.utils.logging.set_verbosity_debug",anchor:"transformers.utils.logging.set_verbosity_debug",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L213"}}),pe=new Ft({props:{title:"Other functions",local:"transformers.utils.logging.get_verbosity",headingTag:"h2"}}),ue=new w({props:{name:"transformers.utils.logging.get_verbosity",anchor:"transformers.utils.logging.get_verbosity",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L161",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The logging level.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),F=new zr({props:{$$slots:{default:[Kr]},$$scope:{ctx:we}}}),ce=new w({props:{name:"transformers.utils.logging.set_verbosity",anchor:"transformers.utils.logging.set_verbosity",parameters:[{name:"verbosity",val:": int"}],parametersDescription:[{anchor:"transformers.utils.logging.set_verbosity.verbosity",description:`<strong>verbosity</strong> (<code>int</code>) &#x2014;
Logging level, e.g., one of:</p>
<ul>
<li><code>transformers.logging.CRITICAL</code> or <code>transformers.logging.FATAL</code></li>
<li><code>transformers.logging.ERROR</code></li>
<li><code>transformers.logging.WARNING</code> or <code>transformers.logging.WARN</code></li>
<li><code>transformers.logging.INFO</code></li>
<li><code>transformers.logging.DEBUG</code></li>
</ul>`,name:"verbosity"}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L184"}}),be=new w({props:{name:"transformers.utils.logging.get_logger",anchor:"transformers.utils.logging.get_logger",parameters:[{name:"name",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L147"}}),$e=new w({props:{name:"transformers.utils.logging.enable_default_handler",anchor:"transformers.utils.logging.enable_default_handler",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L232"}}),ve=new w({props:{name:"transformers.utils.logging.disable_default_handler",anchor:"transformers.utils.logging.disable_default_handler",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L223"}}),_e=new w({props:{name:"transformers.utils.logging.enable_explicit_format",anchor:"transformers.utils.logging.enable_explicit_format",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L278"}}),D=new Xr({props:{anchor:"transformers.utils.logging.enable_explicit_format.example",$$slots:{default:[Qr]},$$scope:{ctx:we}}}),he=new w({props:{name:"transformers.utils.logging.reset_format",anchor:"transformers.utils.logging.reset_format",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L293"}}),ye=new w({props:{name:"transformers.utils.logging.enable_progress_bar",anchor:"transformers.utils.logging.enable_progress_bar",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L384"}}),xe=new w({props:{name:"transformers.utils.logging.disable_progress_bar",anchor:"transformers.utils.logging.disable_progress_bar",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/utils/logging.py#L391"}}),Te=new Yr({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/main_classes/logging.md"}}),{c(){$=o("meta"),I=s(),y=o("p"),v=s(),f(x.$$.fragment),m=s(),T=o("p"),T.textContent=ar,Xe=s(),O=o("p"),O.innerHTML=mr,Ye=s(),B=o("p"),B.textContent=fr,Ke=s(),f(G.$$.fragment),Qe=s(),Z=o("p"),Z.innerHTML=dr,et=s(),f(j.$$.fragment),tt=s(),q=o("p"),q.innerHTML=pr,rt=s(),f(z.$$.fragment),nt=s(),X=o("p"),X.textContent=ur,st=s(),f(Y.$$.fragment),lt=s(),K=o("p"),K.innerHTML=cr,ot=s(),Q=o("ul"),Q.innerHTML=br,it=s(),ee=o("p"),ee.innerHTML=$r,gt=s(),f(te.$$.fragment),at=s(),re=o("p"),re.innerHTML=vr,mt=s(),ne=o("p"),ne.innerHTML=_r,ft=s(),se=o("p"),se.textContent=hr,dt=s(),le=o("ul"),le.innerHTML=yr,pt=s(),oe=o("p"),oe.innerHTML=xr,ut=s(),C=o("div"),f(ie.$$.fragment),Dt=s(),Le=o("p"),Le.innerHTML=Tr,Ot=s(),Me=o("p"),Me.innerHTML=Cr,Bt=s(),Re=o("p"),Re.innerHTML=wr,Gt=s(),Ee=o("p"),Ee.textContent=Lr,ct=s(),f(ge.$$.fragment),bt=s(),H=o("div"),f(ae.$$.fragment),Zt=s(),Ie=o("p"),Ie.innerHTML=Mr,$t=s(),J=o("div"),f(me.$$.fragment),jt=s(),Ne=o("p"),Ne.innerHTML=Rr,vt=s(),P=o("div"),f(fe.$$.fragment),qt=s(),He=o("p"),He.innerHTML=Er,_t=s(),V=o("div"),f(de.$$.fragment),zt=s(),Je=o("p"),Je.innerHTML=Ir,ht=s(),f(pe.$$.fragment),yt=s(),M=o("div"),f(ue.$$.fragment),Xt=s(),Pe=o("p"),Pe.textContent=Nr,Yt=s(),f(F.$$.fragment),xt=s(),U=o("div"),f(ce.$$.fragment),Kt=s(),Ve=o("p"),Ve.textContent=Hr,Tt=s(),R=o("div"),f(be.$$.fragment),Qt=s(),Ue=o("p"),Ue.textContent=Jr,er=s(),Ae=o("p"),Ae.textContent=Pr,Ct=s(),A=o("div"),f($e.$$.fragment),tr=s(),Se=o("p"),Se.textContent=Vr,wt=s(),S=o("div"),f(ve.$$.fragment),rr=s(),We=o("p"),We.textContent=Ur,Lt=s(),N=o("div"),f(_e.$$.fragment),nr=s(),f(D.$$.fragment),sr=Zr(`
All handlers currently bound to the root logger are affected by this method.`),Mt=s(),E=o("div"),f(he.$$.fragment),lr=s(),ke=o("p"),ke.textContent=Ar,or=s(),Fe=o("p"),Fe.textContent=Sr,Rt=s(),W=o("div"),f(ye.$$.fragment),ir=s(),De=o("p"),De.textContent=Wr,Et=s(),k=o("div"),f(xe.$$.fragment),gr=s(),Oe=o("p"),Oe.textContent=kr,It=s(),f(Te.$$.fragment),Nt=s(),je=o("p"),this.h()},l(e){const r=jr("svelte-u9bgzb",document.head);$=i(r,"META",{name:!0,content:!0}),r.forEach(t),I=l(e),y=i(e,"P",{}),_(y).forEach(t),v=l(e),d(x.$$.fragment,e),m=l(e),T=i(e,"P",{"data-svelte-h":!0}),a(T)!=="svelte-1f3qe2n"&&(T.textContent=ar),Xe=l(e),O=i(e,"P",{"data-svelte-h":!0}),a(O)!=="svelte-1ivfm71"&&(O.innerHTML=mr),Ye=l(e),B=i(e,"P",{"data-svelte-h":!0}),a(B)!=="svelte-npib28"&&(B.textContent=fr),Ke=l(e),d(G.$$.fragment,e),Qe=l(e),Z=i(e,"P",{"data-svelte-h":!0}),a(Z)!=="svelte-jlvuha"&&(Z.innerHTML=dr),et=l(e),d(j.$$.fragment,e),tt=l(e),q=i(e,"P",{"data-svelte-h":!0}),a(q)!=="svelte-1wo2bwn"&&(q.innerHTML=pr),rt=l(e),d(z.$$.fragment,e),nt=l(e),X=i(e,"P",{"data-svelte-h":!0}),a(X)!=="svelte-1rpfybn"&&(X.textContent=ur),st=l(e),d(Y.$$.fragment,e),lt=l(e),K=i(e,"P",{"data-svelte-h":!0}),a(K)!=="svelte-ik691k"&&(K.innerHTML=cr),ot=l(e),Q=i(e,"UL",{"data-svelte-h":!0}),a(Q)!=="svelte-7dfw3g"&&(Q.innerHTML=br),it=l(e),ee=i(e,"P",{"data-svelte-h":!0}),a(ee)!=="svelte-4flb68"&&(ee.innerHTML=$r),gt=l(e),d(te.$$.fragment,e),at=l(e),re=i(e,"P",{"data-svelte-h":!0}),a(re)!=="svelte-1yb6cmt"&&(re.innerHTML=vr),mt=l(e),ne=i(e,"P",{"data-svelte-h":!0}),a(ne)!=="svelte-1liiqob"&&(ne.innerHTML=_r),ft=l(e),se=i(e,"P",{"data-svelte-h":!0}),a(se)!=="svelte-17b2pji"&&(se.textContent=hr),dt=l(e),le=i(e,"UL",{"data-svelte-h":!0}),a(le)!=="svelte-1gzoa9y"&&(le.innerHTML=yr),pt=l(e),oe=i(e,"P",{"data-svelte-h":!0}),a(oe)!=="svelte-lqa7ie"&&(oe.innerHTML=xr),ut=l(e),C=i(e,"DIV",{class:!0});var L=_(C);d(ie.$$.fragment,L),Dt=l(L),Le=i(L,"P",{"data-svelte-h":!0}),a(Le)!=="svelte-7noldf"&&(Le.innerHTML=Tr),Ot=l(L),Me=i(L,"P",{"data-svelte-h":!0}),a(Me)!=="svelte-wu9e1c"&&(Me.innerHTML=Cr),Bt=l(L),Re=i(L,"P",{"data-svelte-h":!0}),a(Re)!=="svelte-1rsdpfu"&&(Re.innerHTML=wr),Gt=l(L),Ee=i(L,"P",{"data-svelte-h":!0}),a(Ee)!=="svelte-73l4cs"&&(Ee.textContent=Lr),L.forEach(t),ct=l(e),d(ge.$$.fragment,e),bt=l(e),H=i(e,"DIV",{class:!0});var Ce=_(H);d(ae.$$.fragment,Ce),Zt=l(Ce),Ie=i(Ce,"P",{"data-svelte-h":!0}),a(Ie)!=="svelte-1ppk729"&&(Ie.innerHTML=Mr),Ce.forEach(t),$t=l(e),J=i(e,"DIV",{class:!0});var Jt=_(J);d(me.$$.fragment,Jt),jt=l(Jt),Ne=i(Jt,"P",{"data-svelte-h":!0}),a(Ne)!=="svelte-12ljo43"&&(Ne.innerHTML=Rr),Jt.forEach(t),vt=l(e),P=i(e,"DIV",{class:!0});var Pt=_(P);d(fe.$$.fragment,Pt),qt=l(Pt),He=i(Pt,"P",{"data-svelte-h":!0}),a(He)!=="svelte-1ruccfv"&&(He.innerHTML=Er),Pt.forEach(t),_t=l(e),V=i(e,"DIV",{class:!0});var Vt=_(V);d(de.$$.fragment,Vt),zt=l(Vt),Je=i(Vt,"P",{"data-svelte-h":!0}),a(Je)!=="svelte-10c80ti"&&(Je.innerHTML=Ir),Vt.forEach(t),ht=l(e),d(pe.$$.fragment,e),yt=l(e),M=i(e,"DIV",{class:!0});var Be=_(M);d(ue.$$.fragment,Be),Xt=l(Be),Pe=i(Be,"P",{"data-svelte-h":!0}),a(Pe)!=="svelte-c6o18d"&&(Pe.textContent=Nr),Yt=l(Be),d(F.$$.fragment,Be),Be.forEach(t),xt=l(e),U=i(e,"DIV",{class:!0});var Ut=_(U);d(ce.$$.fragment,Ut),Kt=l(Ut),Ve=i(Ut,"P",{"data-svelte-h":!0}),a(Ve)!=="svelte-1pc8gq7"&&(Ve.textContent=Hr),Ut.forEach(t),Tt=l(e),R=i(e,"DIV",{class:!0});var Ge=_(R);d(be.$$.fragment,Ge),Qt=l(Ge),Ue=i(Ge,"P",{"data-svelte-h":!0}),a(Ue)!=="svelte-155a6rh"&&(Ue.textContent=Jr),er=l(Ge),Ae=i(Ge,"P",{"data-svelte-h":!0}),a(Ae)!=="svelte-7r9l0i"&&(Ae.textContent=Pr),Ge.forEach(t),Ct=l(e),A=i(e,"DIV",{class:!0});var At=_(A);d($e.$$.fragment,At),tr=l(At),Se=i(At,"P",{"data-svelte-h":!0}),a(Se)!=="svelte-1d9pjkh"&&(Se.textContent=Vr),At.forEach(t),wt=l(e),S=i(e,"DIV",{class:!0});var St=_(S);d(ve.$$.fragment,St),rr=l(St),We=i(St,"P",{"data-svelte-h":!0}),a(We)!=="svelte-147u0ic"&&(We.textContent=Ur),St.forEach(t),Lt=l(e),N=i(e,"DIV",{class:!0});var qe=_(N);d(_e.$$.fragment,qe),nr=l(qe),d(D.$$.fragment,qe),sr=qr(qe,`
All handlers currently bound to the root logger are affected by this method.`),qe.forEach(t),Mt=l(e),E=i(e,"DIV",{class:!0});var Ze=_(E);d(he.$$.fragment,Ze),lr=l(Ze),ke=i(Ze,"P",{"data-svelte-h":!0}),a(ke)!=="svelte-1yfjx32"&&(ke.textContent=Ar),or=l(Ze),Fe=i(Ze,"P",{"data-svelte-h":!0}),a(Fe)!=="svelte-3qpllw"&&(Fe.textContent=Sr),Ze.forEach(t),Rt=l(e),W=i(e,"DIV",{class:!0});var Wt=_(W);d(ye.$$.fragment,Wt),ir=l(Wt),De=i(Wt,"P",{"data-svelte-h":!0}),a(De)!=="svelte-1n9lbl5"&&(De.textContent=Wr),Wt.forEach(t),Et=l(e),k=i(e,"DIV",{class:!0});var kt=_(k);d(xe.$$.fragment,kt),gr=l(kt),Oe=i(kt,"P",{"data-svelte-h":!0}),a(Oe)!=="svelte-4qd7jw"&&(Oe.textContent=kr),kt.forEach(t),It=l(e),d(Te.$$.fragment,e),Nt=l(e),je=i(e,"P",{}),_(je).forEach(t),this.h()},h(){h($,"name","hf:doc:metadata"),h($,"content",tn),h(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){g(document.head,$),n(e,I,r),n(e,y,r),n(e,v,r),p(x,e,r),n(e,m,r),n(e,T,r),n(e,Xe,r),n(e,O,r),n(e,Ye,r),n(e,B,r),n(e,Ke,r),p(G,e,r),n(e,Qe,r),n(e,Z,r),n(e,et,r),p(j,e,r),n(e,tt,r),n(e,q,r),n(e,rt,r),p(z,e,r),n(e,nt,r),n(e,X,r),n(e,st,r),p(Y,e,r),n(e,lt,r),n(e,K,r),n(e,ot,r),n(e,Q,r),n(e,it,r),n(e,ee,r),n(e,gt,r),p(te,e,r),n(e,at,r),n(e,re,r),n(e,mt,r),n(e,ne,r),n(e,ft,r),n(e,se,r),n(e,dt,r),n(e,le,r),n(e,pt,r),n(e,oe,r),n(e,ut,r),n(e,C,r),p(ie,C,null),g(C,Dt),g(C,Le),g(C,Ot),g(C,Me),g(C,Bt),g(C,Re),g(C,Gt),g(C,Ee),n(e,ct,r),p(ge,e,r),n(e,bt,r),n(e,H,r),p(ae,H,null),g(H,Zt),g(H,Ie),n(e,$t,r),n(e,J,r),p(me,J,null),g(J,jt),g(J,Ne),n(e,vt,r),n(e,P,r),p(fe,P,null),g(P,qt),g(P,He),n(e,_t,r),n(e,V,r),p(de,V,null),g(V,zt),g(V,Je),n(e,ht,r),p(pe,e,r),n(e,yt,r),n(e,M,r),p(ue,M,null),g(M,Xt),g(M,Pe),g(M,Yt),p(F,M,null),n(e,xt,r),n(e,U,r),p(ce,U,null),g(U,Kt),g(U,Ve),n(e,Tt,r),n(e,R,r),p(be,R,null),g(R,Qt),g(R,Ue),g(R,er),g(R,Ae),n(e,Ct,r),n(e,A,r),p($e,A,null),g(A,tr),g(A,Se),n(e,wt,r),n(e,S,r),p(ve,S,null),g(S,rr),g(S,We),n(e,Lt,r),n(e,N,r),p(_e,N,null),g(N,nr),p(D,N,null),g(N,sr),n(e,Mt,r),n(e,E,r),p(he,E,null),g(E,lr),g(E,ke),g(E,or),g(E,Fe),n(e,Rt,r),n(e,W,r),p(ye,W,null),g(W,ir),g(W,De),n(e,Et,r),n(e,k,r),p(xe,k,null),g(k,gr),g(k,Oe),n(e,It,r),p(Te,e,r),n(e,Nt,r),n(e,je,r),Ht=!0},p(e,[r]){const L={};r&2&&(L.$$scope={dirty:r,ctx:e}),F.$set(L);const Ce={};r&2&&(Ce.$$scope={dirty:r,ctx:e}),D.$set(Ce)},i(e){Ht||(u(x.$$.fragment,e),u(G.$$.fragment,e),u(j.$$.fragment,e),u(z.$$.fragment,e),u(Y.$$.fragment,e),u(te.$$.fragment,e),u(ie.$$.fragment,e),u(ge.$$.fragment,e),u(ae.$$.fragment,e),u(me.$$.fragment,e),u(fe.$$.fragment,e),u(de.$$.fragment,e),u(pe.$$.fragment,e),u(ue.$$.fragment,e),u(F.$$.fragment,e),u(ce.$$.fragment,e),u(be.$$.fragment,e),u($e.$$.fragment,e),u(ve.$$.fragment,e),u(_e.$$.fragment,e),u(D.$$.fragment,e),u(he.$$.fragment,e),u(ye.$$.fragment,e),u(xe.$$.fragment,e),u(Te.$$.fragment,e),Ht=!0)},o(e){c(x.$$.fragment,e),c(G.$$.fragment,e),c(j.$$.fragment,e),c(z.$$.fragment,e),c(Y.$$.fragment,e),c(te.$$.fragment,e),c(ie.$$.fragment,e),c(ge.$$.fragment,e),c(ae.$$.fragment,e),c(me.$$.fragment,e),c(fe.$$.fragment,e),c(de.$$.fragment,e),c(pe.$$.fragment,e),c(ue.$$.fragment,e),c(F.$$.fragment,e),c(ce.$$.fragment,e),c(be.$$.fragment,e),c($e.$$.fragment,e),c(ve.$$.fragment,e),c(_e.$$.fragment,e),c(D.$$.fragment,e),c(he.$$.fragment,e),c(ye.$$.fragment,e),c(xe.$$.fragment,e),c(Te.$$.fragment,e),Ht=!1},d(e){e&&(t(I),t(y),t(v),t(m),t(T),t(Xe),t(O),t(Ye),t(B),t(Ke),t(Qe),t(Z),t(et),t(tt),t(q),t(rt),t(nt),t(X),t(st),t(lt),t(K),t(ot),t(Q),t(it),t(ee),t(gt),t(at),t(re),t(mt),t(ne),t(ft),t(se),t(dt),t(le),t(pt),t(oe),t(ut),t(C),t(ct),t(bt),t(H),t($t),t(J),t(vt),t(P),t(_t),t(V),t(ht),t(yt),t(M),t(xt),t(U),t(Tt),t(R),t(Ct),t(A),t(wt),t(S),t(Lt),t(N),t(Mt),t(E),t(Rt),t(W),t(Et),t(k),t(It),t(Nt),t(je)),t($),b(x,e),b(G,e),b(j,e),b(z,e),b(Y,e),b(te,e),b(ie),b(ge,e),b(ae),b(me),b(fe),b(de),b(pe,e),b(ue),b(F),b(ce),b(be),b($e),b(ve),b(_e),b(D),b(he),b(ye),b(xe),b(Te,e)}}}const tn='{"title":"Logging","local":"logging","sections":[{"title":"logging vs warnings","local":"transformers.utils.logging.captureWarnings","sections":[],"depth":2},{"title":"Base setters","local":"transformers.utils.logging.set_verbosity_error","sections":[],"depth":2},{"title":"Other functions","local":"transformers.utils.logging.get_verbosity","sections":[],"depth":2}],"depth":1}';function rn(we){return Or(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fn extends Br{constructor($){super(),Gr(this,$,rn,en,Dr,{})}}export{fn as component};
