import{range as e,randomPick as i,random as t}from"./lib/utils.js";const a="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",n="Lorem ipsum dolor sit amet, consectetur adipiscing elit...",o=[1,3,4,9],u=e(31,36);const l={level:e=>{let i="neutral";return"ERROR"===e.value?i="danger":"WARN"===e.value?i="warning":"INFO"===e.value&&(i="info"),{strong:!0,intent:i,size:5}},ip:e=>({text:`💻 ${e.value}`,strong:!0,size:17})};function r(l,{longMessage:r=!1,ansi:s=!1,manyMetadata:m=!1}){const c=r?a:n,d=s?function(e){return e.split(" ").slice(0,t(5,50)).map((e=>`[${i(o)};${i(u)}m${e}`)).join("[0m ")}(c):c,p=m?e(1,20).map((e=>({name:`metadata${e}`,value:`value${e}`}))):[{name:"level",value:i(["INFO","WARN","DEBUG","ERROR"])},{name:"ip",value:i(["192.168.12.1","192.168.48.157"])}],g=new Date;return{id:`${g.getTime()}-${l}`,date:g,message:`Message ${l}. ${d}`,metadata:p}}function s(e,i){return Array(e).fill(0).map(((e,t)=>r(t,i??{})))}export{l as CUSTOM_METADATA_RENDERERS,r as createFakeLog,s as createFakeLogs};
//# sourceMappingURL=fake-logs.js.map
