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

transformers.logging.set_verbosity_info()`,wrap:!1}}),j=new qe({props:{code:"VFJBTlNGT1JNRVJTX1ZFUkJPU0lUWSUzRGVycm9yJTIwLiUyRm15cHJvZ3JhbS5weQ==",highlighted:"TRANSFORMERS_VERBOSITY=error ./myprogram.py",wrap:!1}}),z=new qe({props:{code:"VFJBTlNGT1JNRVJTX05PX0FEVklTT1JZX1dBUk5JTkdTJTNEMSUyMC4lMkZteXByb2dyYW0ucHk=",highlighted:"TRANSFORMERS_NO_ADVISORY_WARNINGS=1 ./myprogram.py",wrap:!1}}),Y=new qe({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 Wt({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.36.0/src/transformers/utils/logging.py#L125"}}),ge=new Wt({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.36.0/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.36.0/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.36.0/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.36.0/src/transformers/utils/logging.py#L214"}}),pe=new Wt({props:{title:"Other functions",local:"transformers.utils.logging.get_verbosity",headingTag:"h2"}}),ce=new w({props:{name:"transformers.utils.logging.get_verbosity",anchor:"transformers.utils.logging.get_verbosity",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),F=new jr({props:{$$slots:{default:[zr]},$$scope:{ctx:Ce}}}),ue=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.36.0/src/transformers/utils/logging.py#L185"}}),be=new w({props:{name:"transformers.utils.logging.get_logger",anchor:"transformers.utils.logging.get_logger",parameters:[{name:"name",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/utils/logging.py#L148"}}),$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/v4.36.0/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.36.0/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.36.0/src/transformers/utils/logging.py#L279"}}),D=new qr({props:{anchor:"transformers.utils.logging.enable_explicit_format.example",$$slots:{default:[Xr]},$$scope:{ctx:Ce}}}),_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.36.0/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.36.0/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.36.0/src/transformers/utils/logging.py#L392"}}),{c(){f=o("meta"),I=s(),y=o("p"),v=s(),d(x.$$.fragment),m=s(),T=o("p"),T.textContent=ir,ze=s(),B=o("p"),B.innerHTML=gr,Xe=s(),O=o("p"),O.textContent=ar,Ye=s(),d(G.$$.fragment),Ke=s(),Z=o("p"),Z.innerHTML=mr,Qe=s(),d(j.$$.fragment),et=s(),q=o("p"),q.innerHTML=fr,tt=s(),d(z.$$.fragment),rt=s(),X=o("p"),X.textContent=dr,nt=s(),d(Y.$$.fragment),st=s(),K=o("p"),K.innerHTML=pr,lt=s(),Q=o("ul"),Q.innerHTML=cr,ot=s(),ee=o("p"),ee.innerHTML=ur,it=s(),d(te.$$.fragment),gt=s(),re=o("p"),re.innerHTML=br,at=s(),ne=o("p"),ne.innerHTML=$r,mt=s(),se=o("p"),se.textContent=vr,ft=s(),le=o("ul"),le.innerHTML=hr,dt=s(),oe=o("p"),oe.innerHTML=_r,pt=s(),C=o("div"),d(ie.$$.fragment),kt=s(),we=o("p"),we.innerHTML=yr,Ft=s(),Le=o("p"),Le.innerHTML=xr,Dt=s(),Me=o("p"),Me.innerHTML=Tr,Bt=s(),Re=o("p"),Re.textContent=Cr,ct=s(),d(ge.$$.fragment),ut=s(),H=o("div"),d(ae.$$.fragment),Ot=s(),Ee=o("p"),Ee.innerHTML=wr,bt=s(),J=o("div"),d(me.$$.fragment),Gt=s(),Ie=o("p"),Ie.innerHTML=Lr,$t=s(),P=o("div"),d(fe.$$.fragment),Zt=s(),Ne=o("p"),Ne.innerHTML=Mr,vt=s(),V=o("div"),d(de.$$.fragment),jt=s(),He=o("p"),He.innerHTML=Rr,ht=s(),d(pe.$$.fragment),_t=s(),M=o("div"),d(ce.$$.fragment),qt=s(),Je=o("p"),Je.textContent=Er,zt=s(),d(F.$$.fragment),yt=s(),U=o("div"),d(ue.$$.fragment),Xt=s(),Pe=o("p"),Pe.textContent=Ir,xt=s(),R=o("div"),d(be.$$.fragment),Yt=s(),Ve=o("p"),Ve.textContent=Nr,Kt=s(),Ue=o("p"),Ue.textContent=Hr,Tt=s(),A=o("div"),d($e.$$.fragment),Qt=s(),Ae=o("p"),Ae.textContent=Jr,Ct=s(),S=o("div"),d(ve.$$.fragment),er=s(),Se=o("p"),Se.textContent=Pr,wt=s(),N=o("div"),d(he.$$.fragment),tr=s(),d(D.$$.fragment),rr=Or(`
All handlers currently bound to the root logger are affected by this method.`),Lt=s(),E=o("div"),d(_e.$$.fragment),nr=s(),We=o("p"),We.textContent=Vr,sr=s(),ke=o("p"),ke.textContent=Ur,Mt=s(),W=o("div"),d(ye.$$.fragment),lr=s(),Fe=o("p"),Fe.textContent=Ar,Rt=s(),k=o("div"),d(xe.$$.fragment),or=s(),De=o("p"),De.textContent=Sr,Et=s(),Ze=o("p"),this.h()},l(e){const r=Gr("svelte-u9bgzb",document.head);f=i(r,"META",{name:!0,content:!0}),r.forEach(t),I=l(e),y=i(e,"P",{}),h(y).forEach(t),v=l(e),p(x.$$.fragment,e),m=l(e),T=i(e,"P",{"data-svelte-h":!0}),a(T)!=="svelte-1f3qe2n"&&(T.textContent=ir),ze=l(e),B=i(e,"P",{"data-svelte-h":!0}),a(B)!=="svelte-1ivfm71"&&(B.innerHTML=gr),Xe=l(e),O=i(e,"P",{"data-svelte-h":!0}),a(O)!=="svelte-npib28"&&(O.textContent=ar),Ye=l(e),p(G.$$.fragment,e),Ke=l(e),Z=i(e,"P",{"data-svelte-h":!0}),a(Z)!=="svelte-jlvuha"&&(Z.innerHTML=mr),Qe=l(e),p(j.$$.fragment,e),et=l(e),q=i(e,"P",{"data-svelte-h":!0}),a(q)!=="svelte-1wo2bwn"&&(q.innerHTML=fr),tt=l(e),p(z.$$.fragment,e),rt=l(e),X=i(e,"P",{"data-svelte-h":!0}),a(X)!=="svelte-1rpfybn"&&(X.textContent=dr),nt=l(e),p(Y.$$.fragment,e),st=l(e),K=i(e,"P",{"data-svelte-h":!0}),a(K)!=="svelte-zpk940"&&(K.innerHTML=pr),lt=l(e),Q=i(e,"UL",{"data-svelte-h":!0}),a(Q)!=="svelte-7dfw3g"&&(Q.innerHTML=cr),ot=l(e),ee=i(e,"P",{"data-svelte-h":!0}),a(ee)!=="svelte-1l58366"&&(ee.innerHTML=ur),it=l(e),p(te.$$.fragment,e),gt=l(e),re=i(e,"P",{"data-svelte-h":!0}),a(re)!=="svelte-1yb6cmt"&&(re.innerHTML=br),at=l(e),ne=i(e,"P",{"data-svelte-h":!0}),a(ne)!=="svelte-1liiqob"&&(ne.innerHTML=$r),mt=l(e),se=i(e,"P",{"data-svelte-h":!0}),a(se)!=="svelte-17b2pji"&&(se.textContent=vr),ft=l(e),le=i(e,"UL",{"data-svelte-h":!0}),a(le)!=="svelte-1gzoa9y"&&(le.innerHTML=hr),dt=l(e),oe=i(e,"P",{"data-svelte-h":!0}),a(oe)!=="svelte-lqa7ie"&&(oe.innerHTML=_r),pt=l(e),C=i(e,"DIV",{class:!0});var L=h(C);p(ie.$$.fragment,L),kt=l(L),we=i(L,"P",{"data-svelte-h":!0}),a(we)!=="svelte-7noldf"&&(we.innerHTML=yr),Ft=l(L),Le=i(L,"P",{"data-svelte-h":!0}),a(Le)!=="svelte-wu9e1c"&&(Le.innerHTML=xr),Dt=l(L),Me=i(L,"P",{"data-svelte-h":!0}),a(Me)!=="svelte-1rsdpfu"&&(Me.innerHTML=Tr),Bt=l(L),Re=i(L,"P",{"data-svelte-h":!0}),a(Re)!=="svelte-73l4cs"&&(Re.textContent=Cr),L.forEach(t),ct=l(e),p(ge.$$.fragment,e),ut=l(e),H=i(e,"DIV",{class:!0});var Te=h(H);p(ae.$$.fragment,Te),Ot=l(Te),Ee=i(Te,"P",{"data-svelte-h":!0}),a(Ee)!=="svelte-1ppk729"&&(Ee.innerHTML=wr),Te.forEach(t),bt=l(e),J=i(e,"DIV",{class:!0});var Nt=h(J);p(me.$$.fragment,Nt),Gt=l(Nt),Ie=i(Nt,"P",{"data-svelte-h":!0}),a(Ie)!=="svelte-12ljo43"&&(Ie.innerHTML=Lr),Nt.forEach(t),$t=l(e),P=i(e,"DIV",{class:!0});var Ht=h(P);p(fe.$$.fragment,Ht),Zt=l(Ht),Ne=i(Ht,"P",{"data-svelte-h":!0}),a(Ne)!=="svelte-1ruccfv"&&(Ne.innerHTML=Mr),Ht.forEach(t),vt=l(e),V=i(e,"DIV",{class:!0});var Jt=h(V);p(de.$$.fragment,Jt),jt=l(Jt),He=i(Jt,"P",{"data-svelte-h":!0}),a(He)!=="svelte-10c80ti"&&(He.innerHTML=Rr),Jt.forEach(t),ht=l(e),p(pe.$$.fragment,e),_t=l(e),M=i(e,"DIV",{class:!0});var Be=h(M);p(ce.$$.fragment,Be),qt=l(Be),Je=i(Be,"P",{"data-svelte-h":!0}),a(Je)!=="svelte-c6o18d"&&(Je.textContent=Er),zt=l(Be),p(F.$$.fragment,Be),Be.forEach(t),yt=l(e),U=i(e,"DIV",{class:!0});var Pt=h(U);p(ue.$$.fragment,Pt),Xt=l(Pt),Pe=i(Pt,"P",{"data-svelte-h":!0}),a(Pe)!=="svelte-1pc8gq7"&&(Pe.textContent=Ir),Pt.forEach(t),xt=l(e),R=i(e,"DIV",{class:!0});var Oe=h(R);p(be.$$.fragment,Oe),Yt=l(Oe),Ve=i(Oe,"P",{"data-svelte-h":!0}),a(Ve)!=="svelte-155a6rh"&&(Ve.textContent=Nr),Kt=l(Oe),Ue=i(Oe,"P",{"data-svelte-h":!0}),a(Ue)!=="svelte-7r9l0i"&&(Ue.textContent=Hr),Oe.forEach(t),Tt=l(e),A=i(e,"DIV",{class:!0});var Vt=h(A);p($e.$$.fragment,Vt),Qt=l(Vt),Ae=i(Vt,"P",{"data-svelte-h":!0}),a(Ae)!=="svelte-1d9pjkh"&&(Ae.textContent=Jr),Vt.forEach(t),Ct=l(e),S=i(e,"DIV",{class:!0});var Ut=h(S);p(ve.$$.fragment,Ut),er=l(Ut),Se=i(Ut,"P",{"data-svelte-h":!0}),a(Se)!=="svelte-147u0ic"&&(Se.textContent=Pr),Ut.forEach(t),wt=l(e),N=i(e,"DIV",{class:!0});var je=h(N);p(he.$$.fragment,je),tr=l(je),p(D.$$.fragment,je),rr=Zr(je,`
All handlers currently bound to the root logger are affected by this method.`),je.forEach(t),Lt=l(e),E=i(e,"DIV",{class:!0});var Ge=h(E);p(_e.$$.fragment,Ge),nr=l(Ge),We=i(Ge,"P",{"data-svelte-h":!0}),a(We)!=="svelte-1yfjx32"&&(We.textContent=Vr),sr=l(Ge),ke=i(Ge,"P",{"data-svelte-h":!0}),a(ke)!=="svelte-3qpllw"&&(ke.textContent=Ur),Ge.forEach(t),Mt=l(e),W=i(e,"DIV",{class:!0});var At=h(W);p(ye.$$.fragment,At),lr=l(At),Fe=i(At,"P",{"data-svelte-h":!0}),a(Fe)!=="svelte-1n9lbl5"&&(Fe.textContent=Ar),At.forEach(t),Rt=l(e),k=i(e,"DIV",{class:!0});var St=h(k);p(xe.$$.fragment,St),or=l(St),De=i(St,"P",{"data-svelte-h":!0}),a(De)!=="svelte-4qd7jw"&&(De.textContent=Sr),St.forEach(t),Et=l(e),Ze=i(e,"P",{}),h(Ze).forEach(t),this.h()},h(){_(f,"name","hf:doc:metadata"),_(f,"content",Kr),_(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"),_(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,f),n(e,I,r),n(e,y,r),n(e,v,r),c(x,e,r),n(e,m,r),n(e,T,r),n(e,ze,r),n(e,B,r),n(e,Xe,r),n(e,O,r),n(e,Ye,r),c(G,e,r),n(e,Ke,r),n(e,Z,r),n(e,Qe,r),c(j,e,r),n(e,et,r),n(e,q,r),n(e,tt,r),c(z,e,r),n(e,rt,r),n(e,X,r),n(e,nt,r),c(Y,e,r),n(e,st,r),n(e,K,r),n(e,lt,r),n(e,Q,r),n(e,ot,r),n(e,ee,r),n(e,it,r),c(te,e,r),n(e,gt,r),n(e,re,r),n(e,at,r),n(e,ne,r),n(e,mt,r),n(e,se,r),n(e,ft,r),n(e,le,r),n(e,dt,r),n(e,oe,r),n(e,pt,r),n(e,C,r),c(ie,C,null),g(C,kt),g(C,we),g(C,Ft),g(C,Le),g(C,Dt),g(C,Me),g(C,Bt),g(C,Re),n(e,ct,r),c(ge,e,r),n(e,ut,r),n(e,H,r),c(ae,H,null),g(H,Ot),g(H,Ee),n(e,bt,r),n(e,J,r),c(me,J,null),g(J,Gt),g(J,Ie),n(e,$t,r),n(e,P,r),c(fe,P,null),g(P,Zt),g(P,Ne),n(e,vt,r),n(e,V,r),c(de,V,null),g(V,jt),g(V,He),n(e,ht,r),c(pe,e,r),n(e,_t,r),n(e,M,r),c(ce,M,null),g(M,qt),g(M,Je),g(M,zt),c(F,M,null),n(e,yt,r),n(e,U,r),c(ue,U,null),g(U,Xt),g(U,Pe),n(e,xt,r),n(e,R,r),c(be,R,null),g(R,Yt),g(R,Ve),g(R,Kt),g(R,Ue),n(e,Tt,r),n(e,A,r),c($e,A,null),g(A,Qt),g(A,Ae),n(e,Ct,r),n(e,S,r),c(ve,S,null),g(S,er),g(S,Se),n(e,wt,r),n(e,N,r),c(he,N,null),g(N,tr),c(D,N,null),g(N,rr),n(e,Lt,r),n(e,E,r),c(_e,E,null),g(E,nr),g(E,We),g(E,sr),g(E,ke),n(e,Mt,r),n(e,W,r),c(ye,W,null),g(W,lr),g(W,Fe),n(e,Rt,r),n(e,k,r),c(xe,k,null),g(k,or),g(k,De),n(e,Et,r),n(e,Ze,r),It=!0},p(e,[r]){const L={};r&2&&(L.$$scope={dirty:r,ctx:e}),F.$set(L);const Te={};r&2&&(Te.$$scope={dirty:r,ctx:e}),D.$set(Te)},i(e){It||(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(ce.$$.fragment,e),u(F.$$.fragment,e),u(ue.$$.fragment,e),u(be.$$.fragment,e),u($e.$$.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),It=!0)},o(e){b(x.$$.fragment,e),b(G.$$.fragment,e),b(j.$$.fragment,e),b(z.$$.fragment,e),b(Y.$$.fragment,e),b(te.$$.fragment,e),b(ie.$$.fragment,e),b(ge.$$.fragment,e),b(ae.$$.fragment,e),b(me.$$.fragment,e),b(fe.$$.fragment,e),b(de.$$.fragment,e),b(pe.$$.fragment,e),b(ce.$$.fragment,e),b(F.$$.fragment,e),b(ue.$$.fragment,e),b(be.$$.fragment,e),b($e.$$.fragment,e),b(ve.$$.fragment,e),b(he.$$.fragment,e),b(D.$$.fragment,e),b(_e.$$.fragment,e),b(ye.$$.fragment,e),b(xe.$$.fragment,e),It=!1},d(e){e&&(t(I),t(y),t(v),t(m),t(T),t(ze),t(B),t(Xe),t(O),t(Ye),t(Ke),t(Z),t(Qe),t(et),t(q),t(tt),t(rt),t(X),t(nt),t(st),t(K),t(lt),t(Q),t(ot),t(ee),t(it),t(gt),t(re),t(at),t(ne),t(mt),t(se),t(ft),t(le),t(dt),t(oe),t(pt),t(C),t(ct),t(ut),t(H),t(bt),t(J),t($t),t(P),t(vt),t(V),t(ht),t(_t),t(M),t(yt),t(U),t(xt),t(R),t(Tt),t(A),t(Ct),t(S),t(wt),t(N),t(Lt),t(E),t(Mt),t(W),t(Rt),t(k),t(Et),t(Ze)),t(f),$(x,e),$(G,e),$(j,e),$(z,e),$(Y,e),$(te,e),$(ie),$(ge,e),$(ae),$(me),$(fe),$(de),$(pe,e),$(ce),$(F),$(ue),$(be),$($e),$(ve),$(he),$(D),$(_e),$(ye),$(xe)}}}const Kr='{"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 Qr(Ce){return Fr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gn extends Dr{constructor(f){super(),Br(this,f,Qr,Yr,kr,{})}}export{gn as component};
