mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
95394b5956
Changed ns.enableLog documentation to be very similar to ns.disableLog, to remove possible confusion that it only undoes the effects of ns.disableLog
41 lines
780 B
Markdown
41 lines
780 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [enableLog](./bitburner.ns.enablelog.md)
|
|
|
|
## NS.enableLog() method
|
|
|
|
Enables logging for the given NS function.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
enableLog(fn: string): void;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| fn | string | Name of the NS function for which to enable logging. |
|
|
|
|
**Returns:**
|
|
|
|
void
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|
|
Logging can be enabled for all functions by passing `ALL` as the argument.
|
|
|
|
For specific interfaces, use the form "namespace.functionName". (e.g. "ui.setTheme")
|
|
|
|
## Example
|
|
|
|
|
|
```js
|
|
ns.enableLog("hack"); // Enable logging for `ns.hack()`
|
|
|
|
```
|
|
|