[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [printf](./bitburner.ns.printf.md)
## NS.printf() method
Prints a formatted string to the script’s logs.
Signature:
```typescript
printf(format: string, ...args: any[]): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| format | string | format of the message |
| args | any\[\] | Value(s) to be printed. |
Returns:
void
## Remarks
RAM cost: 0 GB
see: https://github.com/alexei/sprintf.js