import{s as Dr,o as Or,n as kr}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 h,u as d,x as a,n as qr,k as _,y as g,a as n,v as p,d as u,t as c,w as $}from"../chunks/index.7fc9a5e7.js";import{T as zr}from"../chunks/Tip.9de92fc6.js";import{D as w}from"../chunks/Docstring.ef7d0149.js";import{C as ze}from"../chunks/CodeBlock.e11cba92.js";import{E as Xr}from"../chunks/ExampleCodeBlock.0db1a011.js";import{H as kt,E as Yr}from"../chunks/EditOnGithub.84ab7f0e.js";function Kr(we){let b,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(){b=o("p"),b.textContent=I,y=s(),v=o("ul"),v.innerHTML=x},l(m){b=i(m,"P",{"data-svelte-h":!0}),a(b)!=="svelte-xr075s"&&(b.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,b,T),n(m,y,T),n(m,v,T)},p:kr,d(m){m&&(t(b),t(y),t(v))}}}function Qr(we){let b,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(){b=o("p"),b.textContent=I,y=s(),f(v.$$.fragment)},l(m){b=i(m,"P",{"data-svelte-h":!0}),a(b)!=="svelte-1db65t5"&&(b.textContent=I),y=l(m),d(v.$$.fragment,m)},m(m,T){n(m,b,T),n(m,y,T),p(v,m,T),x=!0},p:kr,i(m){x||(u(v.$$.fragment,m),x=!0)},o(m){c(v.$$.fragment,m),x=!1},d(m){m&&(t(b),t(y)),$(v,m)}}}function en(we){let b,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/v4.40.2/zh/main_classes/logging#transformers.utils.logging.get_verbosity">logging.get_verbosity()</a> 用于获取logger当前输出日志详细程度的级别和 <a href="/docs/transformers/v4.40.2/zh/main_classes/logging#transformers.utils.logging.set_verbosity">logging.set_verbosity()</a> 用于将详细程度设置为您选择的级别。按照顺序（从最不详细到最详细），这些级别（及其相应的整数值）为：',ot,Q,$r="<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,br='默认情况下，将在模型下载期间显示<code>tqdm</code>进度条。<a href="/docs/transformers/v4.40.2/zh/main_classes/logging#transformers.utils.logging.disable_progress_bar">logging.disable_progress_bar()</a> 和 <a href="/docs/transformers/v4.40.2/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,hr="我们在<code>transformers</code>库中同时使用这两个系统。我们利用并调整了<code>logging</code>的<code>captureWarning</code>方法，以便通过上面的详细程度setters来管理这些警告消息。",ft,se,_r="对于库的开发人员，这意味着什么呢？我们应该遵循以下启发法则：",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,$t,H,ae,Zt,Ie,Mr="Set the verbosity to the <code>ERROR</code> level.",bt,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.",ht,V,de,zt,Je,Ir="Set the verbosity to the <code>DEBUG</code> level.",_t,pe,yt,M,ue,Xt,Pe,Nr="Return the current level for the 🤗 Transformers’s root logger as an int.",Yt,k,xt,U,ce,Kt,Ve,Hr="Set the verbosity level for the 🤗 Transformers’s root logger.",Tt,R,$e,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,be,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,he,nr,D,sr,Mt,E,_e,lr,Fe,Ar="Resets the formatting for HuggingFace Transformers’s loggers.",or,ke,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,F,xe,gr,Oe,Fr="Disable tqdm progress bar.",It,Te,Nt,je,Ht;return x=new kt({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 kt({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/v4.40.2/src/transformers/utils/logging.py#L125"}}),ge=new kt({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/v4.40.2/src/transformers/utils/logging.py#L219"}}),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/v4.40.2/src/transformers/utils/logging.py#L209"}}),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/v4.40.2/src/transformers/utils/logging.py#L204"}}),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/v4.40.2/src/transformers/utils/logging.py#L214"}}),pe=new kt({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/v4.40.2/src/transformers/utils/logging.py#L162",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>
`}}),k=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/v4.40.2/src/transformers/utils/logging.py#L185"}}),$e=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/v4.40.2/src/transformers/utils/logging.py#L148"}}),be=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/v4.40.2/src/transformers/utils/logging.py#L233"}}),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/v4.40.2/src/transformers/utils/logging.py#L224"}}),he=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/v4.40.2/src/transformers/utils/logging.py#L279"}}),D=new Xr({props:{anchor:"transformers.utils.logging.enable_explicit_format.example",$$slots:{default:[Qr]},$$scope:{ctx:we}}}),_e=new w({props:{name:"transformers.utils.logging.reset_format",anchor:"transformers.utils.logging.reset_format",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/utils/logging.py#L294"}}),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/v4.40.2/src/transformers/utils/logging.py#L385"}}),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/v4.40.2/src/transformers/utils/logging.py#L392"}}),Te=new Yr({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/main_classes/logging.md"}}),{c(){b=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=$r,it=s(),ee=o("p"),ee.innerHTML=br,gt=s(),f(te.$$.fragment),at=s(),re=o("p"),re.innerHTML=vr,mt=s(),ne=o("p"),ne.innerHTML=hr,ft=s(),se=o("p"),se.textContent=_r,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),$t=s(),H=o("div"),f(ae.$$.fragment),Zt=s(),Ie=o("p"),Ie.innerHTML=Mr,bt=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,ht=s(),V=o("div"),f(de.$$.fragment),zt=s(),Je=o("p"),Je.innerHTML=Ir,_t=s(),f(pe.$$.fragment),yt=s(),M=o("div"),f(ue.$$.fragment),Xt=s(),Pe=o("p"),Pe.textContent=Nr,Yt=s(),f(k.$$.fragment),xt=s(),U=o("div"),f(ce.$$.fragment),Kt=s(),Ve=o("p"),Ve.textContent=Hr,Tt=s(),R=o("div"),f($e.$$.fragment),Qt=s(),Ue=o("p"),Ue.textContent=Jr,er=s(),Ae=o("p"),Ae.textContent=Pr,Ct=s(),A=o("div"),f(be.$$.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(he.$$.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(_e.$$.fragment),lr=s(),Fe=o("p"),Fe.textContent=Ar,or=s(),ke=o("p"),ke.textContent=Sr,Rt=s(),W=o("div"),f(ye.$$.fragment),ir=s(),De=o("p"),De.textContent=Wr,Et=s(),F=o("div"),f(xe.$$.fragment),gr=s(),Oe=o("p"),Oe.textContent=Fr,It=s(),f(Te.$$.fragment),Nt=s(),je=o("p"),this.h()},l(e){const r=jr("svelte-u9bgzb",document.head);b=i(r,"META",{name:!0,content:!0}),r.forEach(t),I=l(e),y=i(e,"P",{}),h(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-1uvip84"&&(K.innerHTML=cr),ot=l(e),Q=i(e,"UL",{"data-svelte-h":!0}),a(Q)!=="svelte-7dfw3g"&&(Q.innerHTML=$r),it=l(e),ee=i(e,"P",{"data-svelte-h":!0}),a(ee)!=="svelte-4wvepg"&&(ee.innerHTML=br),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=hr),ft=l(e),se=i(e,"P",{"data-svelte-h":!0}),a(se)!=="svelte-17b2pji"&&(se.textContent=_r),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=h(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),$t=l(e),H=i(e,"DIV",{class:!0});var Ce=h(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),bt=l(e),J=i(e,"DIV",{class:!0});var Jt=h(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=h(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),ht=l(e),V=i(e,"DIV",{class:!0});var Vt=h(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),_t=l(e),d(pe.$$.fragment,e),yt=l(e),M=i(e,"DIV",{class:!0});var Be=h(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(k.$$.fragment,Be),Be.forEach(t),xt=l(e),U=i(e,"DIV",{class:!0});var Ut=h(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=h(R);d($e.$$.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=h(A);d(be.$$.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=h(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=h(N);d(he.$$.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=h(E);d(_e.$$.fragment,Ze),lr=l(Ze),Fe=i(Ze,"P",{"data-svelte-h":!0}),a(Fe)!=="svelte-1yfjx32"&&(Fe.textContent=Ar),or=l(Ze),ke=i(Ze,"P",{"data-svelte-h":!0}),a(ke)!=="svelte-3qpllw"&&(ke.textContent=Sr),Ze.forEach(t),Rt=l(e),W=i(e,"DIV",{class:!0});var Wt=h(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),F=i(e,"DIV",{class:!0});var Ft=h(F);d(xe.$$.fragment,Ft),gr=l(Ft),Oe=i(Ft,"P",{"data-svelte-h":!0}),a(Oe)!=="svelte-4qd7jw"&&(Oe.textContent=Fr),Ft.forEach(t),It=l(e),d(Te.$$.fragment,e),Nt=l(e),je=i(e,"P",{}),h(je).forEach(t),this.h()},h(){_(b,"name","hf:doc:metadata"),_(b,"content",tn),_(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,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(F,"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,b),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,$t,r),n(e,H,r),p(ae,H,null),g(H,Zt),g(H,Ie),n(e,bt,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,ht,r),n(e,V,r),p(de,V,null),g(V,zt),g(V,Je),n(e,_t,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(k,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($e,R,null),g(R,Qt),g(R,Ue),g(R,er),g(R,Ae),n(e,Ct,r),n(e,A,r),p(be,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(he,N,null),g(N,nr),p(D,N,null),g(N,sr),n(e,Mt,r),n(e,E,r),p(_e,E,null),g(E,lr),g(E,Fe),g(E,or),g(E,ke),n(e,Rt,r),n(e,W,r),p(ye,W,null),g(W,ir),g(W,De),n(e,Et,r),n(e,F,r),p(xe,F,null),g(F,gr),g(F,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}),k.$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(k.$$.fragment,e),u(ce.$$.fragment,e),u($e.$$.fragment,e),u(be.$$.fragment,e),u(ve.$$.fragment,e),u(he.$$.fragment,e),u(D.$$.fragment,e),u(_e.$$.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(k.$$.fragment,e),c(ce.$$.fragment,e),c($e.$$.fragment,e),c(be.$$.fragment,e),c(ve.$$.fragment,e),c(he.$$.fragment,e),c(D.$$.fragment,e),c(_e.$$.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($t),t(H),t(bt),t(J),t(vt),t(P),t(ht),t(V),t(_t),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(F),t(It),t(Nt),t(je)),t(b),$(x,e),$(G,e),$(j,e),$(z,e),$(Y,e),$(te,e),$(ie),$(ge,e),$(ae),$(me),$(fe),$(de),$(pe,e),$(ue),$(k),$(ce),$($e),$(be),$(ve),$(he),$(D),$(_e),$(ye),$(xe),$(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(b){super(),Gr(this,b,rn,en,Dr,{})}}export{fn as component};
