# FMOD\_DSP\_LOG

**URL:** <https://qa.fmod.com/t/fmod-dsp-log/13045>\
**Category:** FMOD Studio\
**Created:** [March 17, 2017, 11:37am UTC](https://qa.fmod.com/t/fmod-dsp-log/13045 "2017-03-17T11:37:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [March 20, 2017, 5:38am UTC](https://qa.fmod.com/t/fmod-dsp-log/13045/2 "2017-03-20T05:38:31Z")

</div>

From fmod\_dsp.h you have:

`typedef void (F_CALL *FMOD_DSP_LOG_FUNC)(FMOD_DEBUG_FLAGS level, const char *file, int line, const char *function, const char *string, ...);`

and you can access it easily with the helper macro at the bottom of fmod\_dsp.h

`#define FMOD_DSP_LOG(_state, _level, _location, _format, ...)`

- \_state is the FMOD\_DSP\_STATE given to all DSP callbacks
- \_level is the FMOD\_DEBUG\_FLAGS log level, i.e. FMOD\_DEBUG\_LEVEL\_ERROR, FMOD\_DEBUG\_LEVEL\_WARNING or FMOD\_DEBUG\_LEVEL\_LOG
- \_location is just a string used to identify where you are in your code, often I used the function name for this.
- \_format is a printf format string, and the following var\_args are the printf parameters

Hope that helps.

---

_[View the full topic](https://qa.fmod.com/t/fmod-dsp-log/13045)._
