2021-10-30 18:34:14 +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
2021-10-30 21:46:34 +02:00
Disables logging for the given function.
2021-10-30 18:34:14 +02:00
< 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
2021-11-03 23:16:10 +01:00
RAM cost: 0 GB
Logging can be disabled for all functions by passing `ALL` as the argument.
2021-10-30 21:46:34 +02:00
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.