2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [disableLog](./bitburner.ns.disablelog.md)
|
|
|
|
|
|
|
|
## NS.disableLog() method
|
|
|
|
|
2024-06-28 11:37:04 +02:00
|
|
|
Disables logging for the given NS function.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
disableLog(fn: string): void;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2024-06-28 11:37:04 +02:00
|
|
|
| fn | string | Name of the NS function for which to disable logging. |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0 GB
|
|
|
|
|
|
|
|
Logging can be disabled for all functions by passing `ALL` as the argument.
|
|
|
|
|
2024-03-11 18:14:33 +01:00
|
|
|
For specific interfaces, use the form "namespace.functionName". (e.g. "ui.setTheme")
|
|
|
|
|
2024-06-28 11:37:04 +02:00
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
ns.disableLog("hack"); // Disable logging for `ns.hack()`
|
|
|
|
|
|
|
|
```
|
|
|
|
|