Jump to content

Is there any C# API to query the logmanager for debug mode?


Go to solution Solved by softworkz,

Recommended Posts

Posted

I would like to change the title of a page based on if "Enable debug logging" is set to anything but no.

is there any api to do so?

HawkXP71
Posted
22 hours ago, softworkz said:

Question, I happen to be inside a JS function when I need this.  The way that I solved it, is to use 

var url = ApiClient.getUrl("/emby/System/Configuration");
ApiClient.getJSON(url).then(response => {

    if (response.EnableDebugLevelLogging) {

.......

Is there a better way?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...