<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_getDebugLevel</id>
	<title>Bz getDebugLevel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_getDebugLevel"/>
	<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_getDebugLevel&amp;action=history"/>
	<updated>2026-04-28T16:34:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.bzflag.org/index.php?title=Bz_getDebugLevel&amp;diff=8056&amp;oldid=prev</id>
		<title>Sigonasr2: Create API Function Page. Include Example.</title>
		<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_getDebugLevel&amp;diff=8056&amp;oldid=prev"/>
		<updated>2011-10-19T07:25:03Z</updated>

		<summary type="html">&lt;p&gt;Create API Function Page. Include Example.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{apicall&lt;br /&gt;
| name          = bz_getDebugLevel&lt;br /&gt;
| returns       = An integer containing the BZFS debugging level.&lt;br /&gt;
| returntype    = int&lt;br /&gt;
| description   = Gets the debugging level of the server.&lt;br /&gt;
}}&lt;br /&gt;
===Example===&lt;br /&gt;
Creates a basic BZFS output from debug mode for administrators to watch. Uses bz_getDebugLevel() to determine which messages actually show up.&lt;br /&gt;
 case bz_eLoggingEvent: {&lt;br /&gt;
 	if (((bz_LoggingEventData_V1*)eventData)-&amp;gt;level==bz_getDebugLevel()) {&lt;br /&gt;
 		bz_sendTextMessagef(BZ_SERVER,BZ_ALLUSERS,&lt;br /&gt;
 		&amp;quot;[BZFS] %s&amp;quot;,((bz_LoggingEventData_V1*)eventData)-&amp;gt;message.c_str());&lt;br /&gt;
 	}&lt;br /&gt;
 }break;&lt;/div&gt;</summary>
		<author><name>Sigonasr2</name></author>
	</entry>
</feed>