---
title: Introduction to Assertions and Logging
framework: cocoa
role: article
path: apple-archive/documentation/Cocoa/Conceptual/Assertions
---

# Introduction to Assertions and Logging

Explains how to use assertions and logging to diagnose problems in Cocoa applications.

## Organization of This Document

This programming topic covers exception handling insofar as it relates to evaluations of given conditions and the logging of messages. For more sophisticated exception handling, namely techniques involving the raising (or throwing) and handling of exception objects, see *[Exception Programming Topics](../Exceptions/Exceptions.html#//apple_ref/doc/uid/10000012i)*.

The articles covered in this programming topic are:

- [How Assertions Work](Concepts/HowAssertionsWork.html#//apple_ref/doc/uid/20000062-BBCIBFHE) - [Using the Assertion Macros](Tasks/AssertMacros.html#//apple_ref/doc/uid/20000063-BCIFBACA) - [Logging Messages](Tasks/LoggingMessages.html#//apple_ref/doc/uid/20000064-BAJIEIGD) - [Using a Custom Assertion Handler](Tasks/UsingCustomAssertHndler.html#//apple_ref/doc/uid/20000065-BBCCIAIF)

[Next](Concepts/HowAssertionsWork.html)

Copyright © 2006 Apple Computer, Inc. All Rights Reserved. [Terms of Use](http://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](http://www.apple.com/privacy/) | Updated: 2006-04-04
