|
Oolite
|
import "OOLogging.h"Go to the source code of this file.
Functions | |
| NSArray * | OOPocRecordedLogMessages (void) |
| void | OOPocClearRecordedLogMessages (void) |
| BOOL | OOLogWillDisplayMessagesInClass (NSString *inMessageClass) |
| void | OOLogIndent (void) |
| void | OOLogOutdent (void) |
| void | OOLogPushIndent (void) |
| void | OOLogPopIndent (void) |
| void | OOLogWithFunctionFileAndLineAndArguments (NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inFormat, va_list inArguments) |
| void | OOLogWithFunctionFileAndLine (NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inFormat,...) |
| void | OOLogWithPrefix (NSString *inMessageClass, const char *inFunction, const char *inFile, unsigned long inLine, NSString *inPrefix, NSString *inFormat,...) |
| void | OOLogGenericParameterErrorForFunction (const char *inFunction) |
| void | OOLogGenericSubclassResponsibilityForFunction (const char *inFunction) |
Variables | |
| static NSMutableArray * | sRecordedMessages |
| NSString *const | kOOLogSubclassResponsibility = @"general.error.subclassResponsibility" |
| NSString *const | kOOLogParameterError = @"general.error.parameterError" |
| NSString *const | kOOLogDeprecatedMethod = @"general.error.deprecatedMethod" |
| NSString *const | kOOLogAllocationFailure = @"general.error.allocationFailure" |
| NSString *const | kOOLogInconsistentState = @"general.error.inconsistentState" |
| NSString *const | kOOLogException = @"exception" |
| NSString *const | kOOLogFileNotFound = @"files.notFound" |
| NSString *const | kOOLogFileNotLoaded = @"files.notLoaded" |
| NSString *const | kOOLogOpenGLError = @"rendering.opengl.error" |
| NSString *const | kOOLogUnconvertedNSLog = @"unclassified" |
| void OOLogGenericParameterErrorForFunction | ( | const char * | inFunction | ) |
Definition at line 65 of file OOLogStub.m.
References kOOLogParameterError, and OOLog.
| void OOLogGenericSubclassResponsibilityForFunction | ( | const char * | inFunction | ) |
Definition at line 70 of file OOLogStub.m.
References kOOLogSubclassResponsibility, and OOLog.
| void OOLogIndent | ( | void | ) |
Definition at line 30 of file OOLogStub.m.
References GetIndentLevel(), INDENT_LOCK, INDENT_UNLOCK, and SetIndentLevel().
Referenced by StationEntity::dumpSelfState, Entity::dumpState, GLDumpCullingState(), GLDumpFogState(), GLDumpLightState(), GLDumpMaterialState(), GLDumpStateFlags(), LogOpenGLState(), OOCheckShipDataPListVerifierStage(OOPrivate)::message:, OOCheckOpenGLErrors(), OOFileScannerVerifierStage::plistNamed:inFolder:referencedFrom:checkBuiltIn:, AI::reportStackOverflow, OOOXPVerifier(OOPrivate)::runStages, AI::takeAction:, OOCheckShipDataPListVerifierStage(OOPrivate)::verboseMessage:, and VerifyOpenGLStateInternal().
| void OOLogOutdent | ( | void | ) |
Definition at line 31 of file OOLogStub.m.
References GetIndentLevel(), INDENT_LOCK, INDENT_UNLOCK, and SetIndentLevel().
Referenced by StationEntity::dumpSelfState, GLDumpCullingState(), GLDumpFogState(), GLDumpLightState(), GLDumpMaterialState(), GLDumpStateFlags(), LogOpenGLState(), OOCheckOpenGLErrors(), OOFileScannerVerifierStage::plistNamed:inFolder:referencedFrom:checkBuiltIn:, AI::reportStackOverflow, OOOXPVerifier(OOPrivate)::runStages, AI::takeAction:, and VerifyOpenGLStateInternal().
| void OOLogPopIndent | ( | void | ) |
Definition at line 33 of file OOLogStub.m.
References nil, OOLOG_BAD_POP_INDENT, and OOLogInternal.
Referenced by Entity::dumpState, AI(OOPrivate)::loadStateMachine:jsName:, OOOXPVerifierStage(OOInternal)::performRun, OOOXPVerifier(OOPrivate)::runStages, and OOCheckShipDataPListVerifierStage(OOPrivate)::verifyShipInfo:withName:.
| void OOLogPushIndent | ( | void | ) |
Definition at line 32 of file OOLogStub.m.
References OOLogIndentStackElement::indent, OOLogIndentStackElement::link, and nil.
Referenced by Entity::dumpState, AI(OOPrivate)::loadStateMachine:jsName:, OOOXPVerifierStage(OOInternal)::performRun, OOOXPVerifier(OOPrivate)::runStages, and OOCheckShipDataPListVerifierStage(OOPrivate)::verifyShipInfo:withName:.
| BOOL OOLogWillDisplayMessagesInClass | ( | NSString * | inMessageClass | ) |
Definition at line 25 of file OOLogStub.m.
References EXPECT_NOT, Inited(), kTrueToken, nil, OOLOG_SETTING_RETRIEVE, OOLogInternal, ResolveDisplaySetting(), sDerivedSettingsCache, sOverrideInEffect, and sOverrideValue.
Referenced by Universe::addEntity:, Entity::dumpState, GlobalLog(), GlobalLog(), GlobalLog(), ResourceManager::loadScripts, LogOpenGLState(), LogProblem(), LogProblem(), OOCheckOpenGLErrors(), OONSLogCStringFunction(), ReportJSError(), AI::reportStackOverflow, SyntaxIssue(), OOCheckShipDataPListVerifierStage(OOPrivate)::verboseMessage:, and VerifyOpenGLStateInternal().
| void OOLogWithFunctionFileAndLine | ( | NSString * | inMessageClass, |
| const char * | inFunction, | ||
| const char * | inFile, | ||
| unsigned long | inLine, | ||
| NSString * | inFormat, | ||
| ... ) |
Definition at line 48 of file OOLogStub.m.
References OOLogWithFunctionFileAndLineAndArguments().
| void OOLogWithFunctionFileAndLineAndArguments | ( | NSString * | inMessageClass, |
| const char * | inFunction, | ||
| const char * | inFile, | ||
| unsigned long | inLine, | ||
| NSString * | inFormat, | ||
| va_list | inArguments ) |
Definition at line 35 of file OOLogStub.m.
References nil, and sRecordedMessages.
Referenced by OOLogWithFunctionFileAndLine(), and OOLogWithPrefix().
| void OOLogWithPrefix | ( | NSString * | inMessageClass, |
| const char * | inFunction, | ||
| const char * | inFile, | ||
| unsigned long | inLine, | ||
| NSString * | inPrefix, | ||
| NSString * | inFormat, | ||
| ... ) |
Definition at line 56 of file OOLogStub.m.
References OOLogWithFunctionFileAndLineAndArguments().
| void OOPocClearRecordedLogMessages | ( | void | ) |
Definition at line 20 of file OOLogStub.m.
Referenced by RunErrorTests(), and RunTimeLimiterTests().
| NSArray * OOPocRecordedLogMessages | ( | void | ) |
Definition at line 15 of file OOLogStub.m.
References sRecordedMessages.
Referenced by LogContains().
| NSString* const kOOLogAllocationFailure = @"general.error.allocationFailure" |
Definition at line 78 of file OOLogStub.m.
Referenced by AddTriangle_slow(), OOPNGTextureLoader(OOPrivate)::doLoadTexture, and OOMesh(Private)::loadData:scaleFactor:.
| NSString* const kOOLogDeprecatedMethod = @"general.error.deprecatedMethod" |
Definition at line 77 of file OOLogStub.m.
| NSString* const kOOLogException = @"exception" |
Definition at line 80 of file OOLogStub.m.
Referenced by PlayerEntity(Scripting)::checkScript, OOScriptTimer::compareByNextFireTime:, Universe::drawUniverse, Universe::handleOoliteException:, main(), MissionRunCallback(), MissionRunCallback(), Universe::newDockWithName:andScaleFactor:, Universe::newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:, Universe::newVisualEffectWithName:, PlayerEntity(OOControlsPrivate)::pollApplicationControls, PlayerEntity(Controls)::pollControls:, PlayerEntity(OOControlsPrivate)::pollDockedControls:, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, Universe(OOPrivate)::populateSpaceFromActiveWormholes, AI::reactToMessage:context:, OOMesh::renderOpaqueParts, OOGraphicsResetManager::resetGraphicsState, PlayerEntity::setExtraGuiScreenKeys:definition:, PlayerEntity(Scripting)::setMissionChoicesDictionary:, and Universe::update:.
| NSString* const kOOLogFileNotFound = @"files.notFound" |
Definition at line 81 of file OOLogStub.m.
Referenced by HeadUpDisplay::addLegend:, CopyDataFromFile(), HeadUpDisplay(Private)::drawCustomImage:, GetShaderSource(), OOALSoundVorbisCodec::initWithPath:, OOTextureLoader::loaderWithTextureSpecifier:extraOptions:folder:, NSData(OOExtensions)::oo_dataWithOXZFile:, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.
| NSString* const kOOLogFileNotLoaded = @"files.notLoaded" |
Definition at line 82 of file OOLogStub.m.
| NSString* const kOOLogInconsistentState = @"general.error.inconsistentState" |
Definition at line 79 of file OOLogStub.m.
Referenced by Universe(OOPrivate)::doRemoveEntity:, Universe::getSunSkimEndPositionForShip:, Universe::getSunSkimStartPositionForShip:, WormholeEntity::identFromShip:, PlayerEntity::isDocked, Universe::removeAllEntitiesExceptPlayer, PlayerEntity(OOPrivate)::updateTargeting, and PlayerEntity(OOPrivate)::witchStart.
| NSString* const kOOLogOpenGLError = @"rendering.opengl.error" |
Definition at line 83 of file OOLogStub.m.
Referenced by OOCheckOpenGLErrors().
| NSString* const kOOLogParameterError = @"general.error.parameterError" |
Definition at line 76 of file OOLogStub.m.
Referenced by DecodeFormat(), ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::getSunSkimEndPositionForShip:, Universe::getSunSkimStartPositionForShip:, OOGenerateMipMaps(), OOInterpretTextureSpecifier(), OOLogGenericParameterErrorForFunction(), and PlayerEntity(OOControlsPrivate)::switchToThisView:fromView:andProcessWeaponFacing:justNotify:.
| NSString* const kOOLogSubclassResponsibility = @"general.error.subclassResponsibility" |
Definition at line 75 of file OOLogStub.m.
Referenced by OOScript::name, OOLogGenericSubclassResponsibilityForFunction(), OOScript::runWithTarget:, OOScript::scriptDescription, and OOScript::version.
| NSString* const kOOLogUnconvertedNSLog = @"unclassified" |
Definition at line 84 of file OOLogStub.m.
|
static |
Definition at line 13 of file OOLogStub.m.
Referenced by OOLogWithFunctionFileAndLineAndArguments(), and OOPocRecordedLogMessages().