bitburner-src/markdown/bitburner.ns.disablelog.md
Olivier Gagnon feb0430aff work on doc
2021-10-30 15:46:34 -04:00

33 lines
897 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [disableLog](./bitburner.ns.disablelog.md)
## NS.disableLog() method
Disables logging for the given function.
<b>Signature:</b>
```typescript
disableLog(fn: string): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| fn | string | Name of function for which to disable logging. |
<b>Returns:</b>
void
## Remarks
RAM cost: 0 GB Logging can be disabled for all functions by passing `ALL` as the argument.
Note that this does not completely remove all logging functionality. This only stops a function from logging when the function is successful. If the function fails, it will still log the reason for failure.
Notable functions that cannot have their logs disabled: run, exec, exit.