diff options
| author | Jordan <jordan@psifertex.com> | 2022-12-13 14:53:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-13 14:53:10 -0500 |
| commit | 37684d326ac46de240658b51a4baa3ecdc687ebf (patch) | |
| tree | f9a4109de09f1b0a3c9c8ab5c0cc9ca22e4f053d /docs/dev/batch.md | |
| parent | 6779f43dace09d8db010883577a0a025840ba7ab (diff) | |
notes on disabling logging
Diffstat (limited to 'docs/dev/batch.md')
| -rw-r--r-- | docs/dev/batch.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/dev/batch.md b/docs/dev/batch.md index 0f30749f..6e65de17 100644 --- a/docs/dev/batch.md +++ b/docs/dev/batch.md @@ -88,6 +88,10 @@ with open_view("/bin/ls", options={'analysis.limits.maxFunctionSize': 0}) as bv: print(f"No MLIL entry function") ``` +### Logging and Exceptions + +By default, logging will follow whatever the setting is for [minimum log level](https://docs.binary.ninja/guide/settings.html#all-settings) (`WarningLog` if not changed). However, for batch-process, it's often convenient to use the [`disable_default_log`](https://api.binary.ninja/index.html#binaryninja.disable_default_log) API to shut off logging entirely. Note that you may still need to handle python exceptions with a "try/except" pattern in the event of malformed files that do not process as expected. + ### Further Customization We can customize our analysis a lot more granularly than that though. `open_view` is actually a wrapper around [`get_view_of_file_with_options`](https://api.binary.ninja/binaryninja.binaryview-module.html#binaryninja.binaryview.BinaryViewType.get_view_of_file_with_options). Notice the named `options` parameter, and the example code. Any setting you can set in the Binary Ninja "Open with Options" UI you can set through that parameter. |
