<!-------------------------------common start flag------------------------->
<center>
<div align="center">
  <h1>个人日志组件 -【app-lib-log】</h1>
  <a href="https://img.shields.io/badge/success: https local reason - goback refresh you brower can show badge image now-brightgree" title="click can show badge">
    <img src="https://appbir.github.io/appbir-resource-statics/image/logo.png" height="60" />
  </a>
  <h1>app-lib-log</h1>
  <a href="https://appbir/library">
    <img src="https://img.shields.io/badge/appbir-library-blue"/>
  </a>
  <a href="https://appbir/library/-/web/detail/app-lib-log">
    <img src="https://img.shields.io/badge/npm-v1.0.2-green">
  </a>
  <a href="https://appbir">
    <img src="https://img.shields.io/badge/license-ISC-brightgree"/>
  </a>
<div>
</center>
<!-------------------------------common end flag--------------------------->


<!-------------------------------background start flag--------------------->
# 一、背景介绍
  * nodejs 与 js  统一日志打印风格
  * 便捷线上与开发的灵活调整
  * 彩色高亮打印
<!-------------------------------background end flag----------------------->

<!-------------------------------functions start flag---------------------->
# 二、功能描述

  1. 支持浏览器与 nodejs
  2. 支持彩色输出日志
  2. 支持日志级别设置
  3. 支持日志收集扩展

<!-------------------------------functions end flag------------------------>

<!-------------------------------attention start flag---------------------->
# 三、注意事项
  1. 类的方法输出 在 md 中不能呈现 在 doc/html 文档中可以
<!-------------------------------attention end flag------------------------>

<!-------------------------------examples start flag----------------------->
# 四、使用案列
<!-------------------------------examples end flag------------------------->

<!-------------------------------todo start flag--------------------------->
# 五、todo 列表
  1. brower 端支持不打野堆栈的情况输出
  2. brower 端支持文本转换输出
<!-------------------------------todo end flag----------------------------->

<!-------------------------------api start flag---------------------------->
# 六、API
## Classes

<dl>
<dt><a href="#Logger">Logger</a></dt>
<dd><p>日志类
创建日志</p>
</dd>
</dl>

## Constants

<dl>
<dt><a href="#ALL_FUNCTIONS">ALL_FUNCTIONS</a></dt>
<dd><ul>
<li>日志级别相关方法</li>
</ul>
<table>
<thead>
<tr>
<th>级别</th>
<th>堆栈</th>
<th>调试</th>
<th>日志</th>
<th>信息</th>
<th>成功</th>
<th>表格</th>
<th>时间</th>
<th>警告</th>
<th>错误</th>
</tr>
</thead>
<tbody><tr>
<td>方法名</td>
<td>trace</td>
<td>debug</td>
<td>log</td>
<td>info</td>
<td>success</td>
<td>table</td>
<td>time</td>
<td>warn/warnNoTrace</td>
<td>error/errorNoTrace</td>
</tr>
<tr>
<td>简写</td>
<td>t</td>
<td>d</td>
<td>l</td>
<td>i</td>
<td>s</td>
<td>T</td>
<td>tt</td>
<td>w/wn</td>
<td>e/wn</td>
</tr>
<tr>
<td>模块化</td>
<td>mTrace</td>
<td>mDebug</td>
<td>mLog</td>
<td>mInfo</td>
<td>mSuccess</td>
<td>mTable</td>
<td>mTime</td>
<td>mWarn/mWarnNoTrace</td>
<td>mError/mErrorNoTrace</td>
</tr>
<tr>
<td>简写</td>
<td>mt</td>
<td>md</td>
<td>ml</td>
<td>mi</td>
<td>ms</td>
<td>mT</td>
<td>mtt</td>
<td>mw/mwn</td>
<td>me/mwn</td>
</tr>
</tbody></table>
<ul>
<li>彩色转换与其他方法<blockquote>
<p>参考详细文档</p>
</blockquote>
</li>
</ul>
</dd>
<dt><a href="#TYPE">TYPE</a></dt>
<dd><p>日志类型</p>
<table>
<thead>
<tr>
<th>级别</th>
<th>堆栈</th>
<th>调试</th>
<th>日志</th>
<th>信息</th>
<th>成功</th>
<th>表格</th>
<th>时间</th>
<th>警告</th>
<th>错误</th>
</tr>
</thead>
<tbody><tr>
<td>常量名称</td>
<td>TRACE</td>
<td>DEBUG</td>
<td>LOG</td>
<td>INFO</td>
<td>SUCCESS</td>
<td>TABLE</td>
<td>TIME</td>
<td>WARN</td>
<td>ERROR</td>
</tr>
<tr>
<td>常量值</td>
<td>trace</td>
<td>debug</td>
<td>log</td>
<td>info</td>
<td>success</td>
<td>table</td>
<td>time</td>
<td>warn</td>
<td>error</td>
</tr>
</tbody></table>
</dd>
<dt><a href="#LEVEL">LEVEL</a></dt>
<dd><p>日志级别</p>
<ul>
<li>通过 setOption({level:number}) 进行打印高于该值 (number) 的日志</li>
<li>调整该顺序值进行灵活打印</li>
<li>或者只打印某几项日志</li>
</ul>
<table>
<thead>
<tr>
<th>级别</th>
<th>堆栈</th>
<th>调试</th>
<th>日志</th>
<th>信息</th>
<th>成功</th>
<th>表格</th>
<th>时间</th>
<th>警告</th>
<th>错误</th>
</tr>
</thead>
<tbody><tr>
<td>常量名</td>
<td>trace</td>
<td>debug</td>
<td>log</td>
<td>info</td>
<td>success</td>
<td>table</td>
<td>time</td>
<td>warn</td>
<td>error</td>
</tr>
<tr>
<td>常量值</td>
<td>10</td>
<td>20</td>
<td>30</td>
<td>31</td>
<td>32</td>
<td>33</td>
<td>40</td>
<td>60</td>
<td>70</td>
</tr>
</tbody></table>
</dd>
<dt><a href="#option">option</a></dt>
<dd><p>默认配置</p>
<ul>
<li>setOption - 进行设置  </li>
<li>getOption - 获取当前的配置</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数类型</th>
<th>参数默认值</th>
<th>参数描述</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>bindGlobalName</td>
<td>string</td>
<td>log</td>
<td>全局的名称</td>
<td>直接在 windows 或者 nodejs 环境中直接使用 log 即可</td>
</tr>
<tr>
<td>level</td>
<td>number/array</td>
<td>20</td>
<td>打印日志级别</td>
<td>低于该级别的类型忽略输出/或者打印指定级别 [&#39;warn&#39;,error] 的日志</td>
</tr>
<tr>
<td>moduleName</td>
<td>string</td>
<td>&#39;&#39;</td>
<td>模块名称</td>
<td>模块打印的名称</td>
</tr>
<tr>
<td>isModule</td>
<td>boolean</td>
<td>false</td>
<td>是否开启模块标识打印</td>
<td>关闭模块打印表示</td>
</tr>
<tr>
<td>isColorful</td>
<td>boolean</td>
<td>true</td>
<td>是否开启彩色打印</td>
<td></td>
</tr>
<tr>
<td>colorful</td>
<td>object</td>
<td>参考彩色配置</td>
<td>不同终端、不同级别颜色配置</td>
<td></td>
</tr>
<tr>
<td>LEVEL</td>
<td>object</td>
<td>参考 LEVEL</td>
<td>配置打印级别值</td>
<td>灵活调整日志级别顺序</td>
</tr>
<tr>
<td>dateFormatter</td>
<td>string/function</td>
<td>&#39;YYYY-MM-DD HH:mm:ss&#39;</td>
<td>日期打印格式化输出</td>
<td></td>
</tr>
<tr>
<td>onLogger</td>
<td>function</td>
<td>null</td>
<td>日志输出记录</td>
<td>用于日志的收集管理</td>
</tr>
</tbody></table>
</dd>
<dt><a href="#log">log</a></dt>
<dd><ul>
<li>默认会挂载全局 直接通过 log 来使用</li>
</ul>
</dd>
</dl>

## Functions

<dl>
<dt><a href="#setOption">setOption(option)</a> ⇒ <code>objcet</code></dt>
<dd><p>设置配置</p>
<ul>
<li>设置后即刻生效 </li>
<li>后续日志打印按照该设置进行</li>
</ul>
</dd>
<dt><a href="#getOption">getOption()</a> ⇒ <code>object</code></dt>
<dd><p>获取配置</p>
</dd>
<dt><a href="#auotLevel/auotLogLevel">auotLevel/auotLogLevel()</a> ⇒ <code>object</code></dt>
<dd><p>根据命令行终端参数动态设置日志级别</p>
<ul>
<li>--debug </li>
<li>process.env.DEBUG
   仅在 nodejs 中生效
   debug 模式 默认级别为 0 否则为 21</li>
</ul>
</dd>
<dt><a href="#tb/transTextColorBlock">tb/transTextColorBlock(text, opitons)</a> ⇒ <code>string</code></dt>
<dd><p>输出执行缩进 显示块长度 文件颜色 和背景色的 文本</p>
<ol>
<li>option 参数</li>
</ol>
<ul>
<li>indent  缩进</li>
<li>width  块的长度</li>
<li>algin 对齐</li>
<li>color  颜色</li>
<li>background 背景颜色</li>
</ul>
</dd>
<dt><a href="#tx/transTextColor">tx/transTextColor(text, color, background)</a> ⇒ <code>string</code></dt>
<dd><p>转换文本颜色</p>
</dd>
<dt><a href="#txl/transTextColorAndLog">txl/transTextColorAndLog(text, color, background)</a> ⇒ <code>string</code></dt>
<dd><p>转换文本颜色并且打印</p>
<ul>
<li>不受级别控制</li>
</ul>
</dd>
<dt><a href="#tl/transLevelTextColor">tl/transLevelTextColor([level], text, isBackground)</a> ⇒ <code>string</code></dt>
<dd><p>转换指定级别文本颜色</p>
<ul>
<li>不受级别控制</li>
</ul>
</dd>
<dt><a href="#tll/transLevelTextColorAndLog">tll/transLevelTextColorAndLog([level], text, isBackground)</a> ⇒ <code>string</code></dt>
<dd><p>转换指定级别文本颜色</p>
<ul>
<li>不受级别控制</li>
</ul>
</dd>
<dt><a href="#tlh/transLevelHeaderAndLog">tlh/transLevelHeaderAndLog(level, text, chalkOption)</a> ⇒ <code>string</code></dt>
<dd><p>打印指定的脚本 </p>
<ul>
<li>带级别字段和内容</li>
</ul>
</dd>
<dt><a href="#t/trace">t/trace(args)</a> ⇒ <code>null</code></dt>
<dd><p>trace 调试打印</p>
</dd>
<dt><a href="#d/debug">d/debug(args)</a> ⇒ <code>null</code></dt>
<dd><p>debug 调试打印</p>
</dd>
<dt><a href="#i/info">i/info(args)</a> ⇒ <code>null</code></dt>
<dd><p>info 信息打印</p>
</dd>
<dt><a href="#l/log">l/log(args)</a> ⇒ <code>null</code></dt>
<dd><p>log 日志打印</p>
</dd>
<dt><a href="#s/success">s/success(args)</a> ⇒ <code>null</code></dt>
<dd><p>success 成功打印</p>
</dd>
<dt><a href="#tt/time">tt/time(args)</a> ⇒ <code>null</code></dt>
<dd><p>time 时间打印</p>
</dd>
<dt><a href="#T/table">T/table(args)</a> ⇒ <code>null</code></dt>
<dd><p>table 表格打印</p>
</dd>
<dt><a href="#w/warn">w/warn(args)</a> ⇒ <code>null</code></dt>
<dd><p>warn 警告打印</p>
</dd>
<dt><a href="#wn/warnNoTrace">wn/warnNoTrace(args)</a> ⇒ <code>null</code></dt>
<dd><p>debug 调试打印</p>
<ul>
<li>不带堆栈</li>
</ul>
</dd>
<dt><a href="#e/error">e/error(args)</a> ⇒ <code>null</code></dt>
<dd><p>error 错误打印</p>
</dd>
<dt><a href="#en/errorNoTrace">en/errorNoTrace(args)</a> ⇒ <code>null</code></dt>
<dd><p>error 调试打印</p>
<ul>
<li>不带堆栈</li>
</ul>
</dd>
<dt><a href="#mt/mTrace">mt/mTrace(args)</a> ⇒ <code>null</code></dt>
<dd><p>mTrace 堆栈打印 (模块化)</p>
</dd>
<dt><a href="#md/mDebug">md/mDebug(args)</a> ⇒ <code>null</code></dt>
<dd><p>mDebug 调试打印 (模块化)</p>
</dd>
<dt><a href="#mi/mInfo">mi/mInfo(args)</a> ⇒ <code>null</code></dt>
<dd><p>mInfo 信息打印 (模块化)</p>
</dd>
<dt><a href="#ml/mLog">ml/mLog(args)</a> ⇒ <code>null</code></dt>
<dd><p>mLog 日志打印 (模块化)</p>
<ul>
<li>原生的控制台打印</li>
</ul>
</dd>
<dt><a href="#ms/mSuccess">ms/mSuccess(args)</a> ⇒ <code>null</code></dt>
<dd><p>mSuccess 成功打印 (模块化)</p>
</dd>
<dt><a href="#mtt/mTime">mtt/mTime(args)</a> ⇒ <code>null</code></dt>
<dd><p>mTime 调试打印 (模块化)</p>
</dd>
<dt><a href="#mT/mTable">mT/mTable(args)</a> ⇒ <code>null</code></dt>
<dd><p>mTable 表格打印 (模块化)</p>
</dd>
<dt><a href="#mw/mWarn">mw/mWarn(args)</a> ⇒ <code>null</code></dt>
<dd><p>mWarn 告警打印 (模块化)</p>
</dd>
<dt><a href="#mwn/mWarnNoTrace">mwn/mWarnNoTrace(args)</a> ⇒ <code>null</code></dt>
<dd><p>mWarnNoTrace 调试打印 (模块化)</p>
<ul>
<li>不带堆栈</li>
</ul>
</dd>
<dt><a href="#me/mError">me/mError(args)</a> ⇒ <code>null</code></dt>
<dd><p>mError 调试打印 (模块化)</p>
</dd>
<dt><a href="#men/mErrorNoTrace">men/mErrorNoTrace(args)</a> ⇒ <code>null</code></dt>
<dd><p>mErrorNoTrace 调试打印 (模块化)</p>
<ul>
<li>不带堆栈</li>
</ul>
</dd>
<dt><a href="#autoFillText">autoFillText(text, length, aligin)</a> ⇒</dt>
<dd><p>autoFillText 动态补全文本</p>
<ul>
<li>常用于打印类似各种级别的日志 配置配合 tl 使用</li>
</ul>
</dd>
<dt><a href="#fill">fill(length, content)</a> ⇒</dt>
<dd><ul>
<li>填充文本 (一般是空白)</li>
</ul>
</dd>
<dt><a href="#create">create(option)</a> ⇒ <code>object</code></dt>
<dd><ol>
<li>第一次引入 默认创建实例</li>
<li>后续导入  直接返回第一次创建的实例</li>
</ol>
</dd>
</dl>

<a name="ALL_FUNCTIONS"></a>

## ALL\_FUNCTIONS
* 日志级别相关方法|级别 | 堆栈 | 调试 | 日志 | 信息 | 成功 | 表格 | 时间 | 警告 | 错误 ||-|-|-|-|-|-|-|-|-|-||方法名|trace|debug|log|info|success|table|time|warn/warnNoTrace|error/errorNoTrace||简写|t|d|l|i|s|T|tt|w/wn|e/wn||模块化|mTrace|mDebug|mLog|mInfo|mSuccess|mTable|mTime|mWarn/mWarnNoTrace|mError/mErrorNoTrace||简写|mt|md|ml|mi|ms|mT|mtt|mw/mwn|me/mwn|* 彩色转换与其他方法 > 参考详细文档

**Kind**: global constant  
<a name="TYPE"></a>

## TYPE
日志类型|级别 | 堆栈 | 调试 | 日志 | 信息 | 成功 | 表格 | 时间 | 警告 | 错误 ||-|-|-|-|-|-|-|-|-|-||常量名称|TRACE|DEBUG|LOG|INFO|SUCCESS|TABLE|TIME|WARN|ERROR||常量值|trace|debug|log|info|success|table|time|warn|error|

**Kind**: global constant  
<a name="LEVEL"></a>

## LEVEL
日志级别 * 通过 setOption({level:number}) 进行打印高于该值 (number) 的日志 * 调整该顺序值进行灵活打印 * 或者只打印某几项日志|级别 | 堆栈 | 调试 | 日志 | 信息 | 成功 | 表格 | 时间 | 警告 | 错误 ||-|-|-|-|-|-|-|-|-|-||常量名|trace|debug|log|info|success|table|time|warn|error||常量值|10|20|30|31|32|33|40|60|70|

**Kind**: global constant  
<a name="option"></a>

## option
默认配置 * setOption - 进行设置   * getOption - 获取当前的配置|参数名 | 参数类型 | 参数默认值 | 参数描述 | 备注 ||-|-|-|-|-||bindGlobalName|string|log|全局的名称 | 直接在 windows 或者 nodejs 环境中直接使用 log 即可 ||level|number/array|20|打印日志级别 | 低于该级别的类型忽略输出/或者打印指定级别 ['warn',error] 的日志 ||moduleName|string|''|模块名称 | 模块打印的名称|mxx 打印时直接输入自定义名称即可 ||isModule|boolean|false|是否开启模块标识打印 | 关闭模块打印表示 ||isColorful|boolean|true|是否开启彩色打印 ||colorful|object|参考彩色配置 | 不同终端、不同级别颜色配置 ||LEVEL|object|参考 LEVEL|配置打印级别值 | 灵活调整日志级别顺序 ||dateFormatter|string/function|'YYYY-MM-DD HH:mm:ss'|日期打印格式化输出 ||onLogger|function|null|日志输出记录 | 用于日志的收集管理 |

**Kind**: global constant  
<a name="log"></a>

## log
* 默认会挂载全局 直接通过 log 来使用

**Kind**: global constant  
<a name="setOption"></a>

## setOption(option) ⇒ <code>objcet</code>
设置配置 * 设置后即刻生效  * 后续日志打印按照该设置进行

**Kind**: global function  
**Returns**: <code>objcet</code> - 新的参数配置 option  

| Param | Type | Description |
| --- | --- | --- |
| option | <code>object</code> | 参考默认 option 配置 |

<a name="getOption"></a>

## getOption() ⇒ <code>object</code>
获取配置

**Kind**: global function  
**Returns**: <code>object</code> - 参考默认 option  
<a name="auotLevel/auotLogLevel"></a>

## auotLevel/auotLogLevel() ⇒ <code>object</code>
根据命令行终端参数动态设置日志级别   * --debug    * process.env.DEBUG   仅在 nodejs 中生效   debug 模式 默认级别为 0 否则为 21

**Kind**: global function  
**Returns**: <code>object</code> - log  日志实例  
<a name="tb/transTextColorBlock"></a>

## tb/transTextColorBlock(text, opitons) ⇒ <code>string</code>
输出执行缩进 显示块长度 文件颜色 和背景色的 文本  1. option 参数 * indent  缩进 * width  块的长度 * algin 对齐 * color  颜色 * background 背景颜色

**Kind**: global function  
**Returns**: <code>string</code> - 彩色文案  

| Param | Type |
| --- | --- |
| text | <code>string</code> | 
| opitons | <code>object</code> | 

<a name="tx/transTextColor"></a>

## tx/transTextColor(text, color, background) ⇒ <code>string</code>
转换文本颜色

**Kind**: global function  
**Returns**: <code>string</code> - 彩色文案  

| Param | Type | Description |
| --- | --- | --- |
| text | <code>string</code> | 文本内容 |
| color | <code>string</code> | 文字颜色 hex 格式 |
| background | <code>string</code> | 背景颜色 hex 格式 |

<a name="txl/transTextColorAndLog"></a>

## txl/transTextColorAndLog(text, color, background) ⇒ <code>string</code>
转换文本颜色并且打印 * 不受级别控制

**Kind**: global function  
**Returns**: <code>string</code> - 彩色文本内容  

| Param | Type | Description |
| --- | --- | --- |
| text | <code>string</code> | 文本内容 |
| color | <code>string</code> | 文字颜色 hex 格式 |
| background | <code>string</code> | 背景颜色 hex 格式 |

<a name="tl/transLevelTextColor"></a>

## tl/transLevelTextColor([level], text, isBackground) ⇒ <code>string</code>
转换指定级别文本颜色 * 不受级别控制

**Kind**: global function  
**Returns**: <code>string</code> - 彩色文本内容  

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [level] | <code>string</code> | <code>&quot;TYPE.INFO&quot;</code> | 日志界别 参考 log.TYPE |
| text | <code>string</code> |  | 打印的文本内容 |
| isBackground | <code>boolean</code> |  | 是否包含背景 |

<a name="tll/transLevelTextColorAndLog"></a>

## tll/transLevelTextColorAndLog([level], text, isBackground) ⇒ <code>string</code>
转换指定级别文本颜色 * 不受级别控制

**Kind**: global function  
**Returns**: <code>string</code> - 彩色文本内容  

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [level] | <code>string</code> | <code>&quot;TYPE.INFO&quot;</code> | 日志界别 参考 log.TYPE |
| text | <code>string</code> |  | 打印的文本内容 |
| isBackground | <code>boolean</code> |  | 是否包含背景 |

<a name="tlh/transLevelHeaderAndLog"></a>

## tlh/transLevelHeaderAndLog(level, text, chalkOption) ⇒ <code>string</code>
打印指定的脚本  * 带级别字段和内容

**Kind**: global function  
**Returns**: <code>string</code> - 转换后的字符内容  

| Param | Type | Description |
| --- | --- | --- |
| level | <code>string</code> | 级别 |
| text | <code>string</code> | 文本内容 |
| chalkOption | <code>string</code> | 颜色配置参数 { bg, color } 形式 |

<a name="t/trace"></a>

## t/trace(args) ⇒ <code>null</code>
trace 调试打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="d/debug"></a>

## d/debug(args) ⇒ <code>null</code>
debug 调试打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="i/info"></a>

## i/info(args) ⇒ <code>null</code>
info 信息打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="l/log"></a>

## l/log(args) ⇒ <code>null</code>
log 日志打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="s/success"></a>

## s/success(args) ⇒ <code>null</code>
success 成功打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="tt/time"></a>

## tt/time(args) ⇒ <code>null</code>
time 时间打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="T/table"></a>

## T/table(args) ⇒ <code>null</code>
table 表格打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="w/warn"></a>

## w/warn(args) ⇒ <code>null</code>
warn 警告打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="wn/warnNoTrace"></a>

## wn/warnNoTrace(args) ⇒ <code>null</code>
debug 调试打印* 不带堆栈

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="e/error"></a>

## e/error(args) ⇒ <code>null</code>
error 错误打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="en/errorNoTrace"></a>

## en/errorNoTrace(args) ⇒ <code>null</code>
error 调试打印* 不带堆栈

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="mt/mTrace"></a>

## mt/mTrace(args) ⇒ <code>null</code>
mTrace 堆栈打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="md/mDebug"></a>

## md/mDebug(args) ⇒ <code>null</code>
mDebug 调试打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="mi/mInfo"></a>

## mi/mInfo(args) ⇒ <code>null</code>
mInfo 信息打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="ml/mLog"></a>

## ml/mLog(args) ⇒ <code>null</code>
mLog 日志打印 (模块化)  * 原生的控制台打印

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="ms/mSuccess"></a>

## ms/mSuccess(args) ⇒ <code>null</code>
mSuccess 成功打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="mtt/mTime"></a>

## mtt/mTime(args) ⇒ <code>null</code>
mTime 调试打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="mT/mTable"></a>

## mT/mTable(args) ⇒ <code>null</code>
mTable 表格打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="mw/mWarn"></a>

## mw/mWarn(args) ⇒ <code>null</code>
mWarn 告警打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="mwn/mWarnNoTrace"></a>

## mwn/mWarnNoTrace(args) ⇒ <code>null</code>
mWarnNoTrace 调试打印 (模块化)  * 不带堆栈

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="me/mError"></a>

## me/mError(args) ⇒ <code>null</code>
mError 调试打印 (模块化)

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="men/mErrorNoTrace"></a>

## men/mErrorNoTrace(args) ⇒ <code>null</code>
mErrorNoTrace 调试打印 (模块化)* 不带堆栈

**Kind**: global function  

| Param | Type | Description |
| --- | --- | --- |
| args | <code>any</code> | 打印的内容 |

<a name="autoFillText"></a>

## autoFillText(text, length, aligin) ⇒
autoFillText 动态补全文本 * 常用于打印类似各种级别的日志 配置配合 tl 使用

**Kind**: global function  
**Returns**: 整合的字段  

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| text | <code>string</code> |  | 文本内容 |
| length | <code>number</code> |  | 长度 默认级别打印的长度设置保持一致 超出长度按照超出的部分显示 |
| aligin | <code>string</code> | <code>&quot;right&quot;</code> | 对齐 支持 center,left 和 默认 right |

<a name="fill"></a>

## fill(length, content) ⇒
* 填充文本 (一般是空白)

**Kind**: global function  
**Returns**: string 填充后的内容  

| Param | Type | Description |
| --- | --- | --- |
| length | <code>number</code> | 填充的次数 |
| content | <code>string</code> | 填充的内容 |

<a name="create"></a>

## create(option) ⇒ <code>object</code>
1. 第一次引入 默认创建实例  2. 后续导入  直接返回第一次创建的实例

**Kind**: global function  
**Returns**: <code>object</code> - logInstance 日志实例  

| Param | Type | Description |
| --- | --- | --- |
| option | <code>Object</code> | 详细参数参考 option |


<!-------------------------------api end flag------------------------------>

<!-------------------------------change logs begin flag--------------------->
# 七、发布日志
 * [2024-12-11 12-00-38]-去掉debugger


 * [2023-12-28 11-44-16]-aaa






<!-------------------------------change logs end flag----------------------->
