Skip to main content

WriteData

Writes data to the log file. It is used for logs in JS code.

note

For JS, this method is not used.

Syntax

def WriteData(self, path: str, value: str, append: bool)

Parameters

NameTypeDescription
pathstrThe path to the file where all the logs will be written.
valuestrThe data which will be written to the log file.
appendboolSpecifies if the new data will be appended to the already existing log file or a new file will be created.

Example

import docbuilder

builder = docbuilder.CDocBuilder()
builder.WriteData("result.log", "Alert!", False)