aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMLogger.m
Commit message (Collapse)AuthorAge
* First cut at pruning things/updating things.Gravatar dmaclach2016-10-07
| | | | | | | | | | | | | | | Remove a bunch of code that Google stopped using/maintaining rather than trying to update it it. Some would be hard to update, some actually has system provided replacements; others are patterns that just don't seem as common now. Prune out the code related to macOS <= 10.5, start pruning some of the really old iOS support also. Get the projects mostly limping again with modern Xcodes so tests can be run. If someone ends up on this commit via history for something they still find as useful, feel free to do a pull request to bring the snippet of code back to life and update it for current SDKs.
* Make GTMLogLevelFilter use KVO on GTMVerboseLogging in sharedUserDefaultsGravatar Thomas Van Lenten2016-08-05
| | | | | | | | | This avoids checking if verbose logging is enabled on every user defaults change, and only does so when the verbose logging key changes. In sampling a few apps, this showed up as a hit when the app changes default (directly or via the System frameworks storing things). By using KVO for it it basically disappears from the samples.
* Fix up comments on filterGravatar Thomas Van Lenten2015-09-08
|
* Cache the verbosity level instead of fetching constantly.Gravatar thomasvl2014-10-29
|
* More -Wundef fixes for GTM (GTMLogger specifically)Gravatar gtm.daemon2014-02-25
| | | DELTA=1 (0 added, 0 deleted, 1 changed)
* Fix build of Mac GTM project with static analyzer. Remove ↵Gravatar gtm.daemon2013-12-19
| | | | | GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton. DELTA=447 (49 added, 296 deleted, 102 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-07-26
| | | | | | Turn off warnings on gcc. Leave them on on clang. R=thomasvl DELTA=32 (30 added, 2 deleted, 0 changed)
* [Author: mikemorton]Gravatar gtm.daemon2012-04-20
| | | | | | | Expose internal GTMLogger logging method for subclasses to override. R=thomasvl APPROVED=thomasvl DELTA=20 (9 added, 10 deleted, 1 changed)
* [Author: aharper]Gravatar gtm.daemon2011-10-21
| | | | | | | | | - Make custom level filters much more flexible (arbitrary level combinations). - Remove older custom level class to prevent confusion. - Add a new standard logger that tries to produce a reasonable stdout/stderr split for commandline tools. R=dmaclach APPROVED=dmaclach
* [Author: aharper]Gravatar gtm.daemon2011-09-06
| | | | | | Catch everything, not just NSException. R=dmaclach APPROVED=dmaclach
* [Author: aharper]Gravatar gtm.daemon2011-08-12
| | | | | | Add a log filter that filters by simple level comparisons. R=dmaclach,thomasvl APPROVED=dmaclach
* [Author: aharper]Gravatar gtm.daemon2011-05-26
| | | | | | | | | Logging doesn't get to call assert() or exit() even when its very sad. Logging isn't in charge of killing the process. Internal exceptions need catching too. Plus some minor cleanup along the way, and better handling of GTMVerboseLogging in the environment. R=dmaclach,thomasvl APPROVED=thomasvl
* [Author: aharper]Gravatar gtm.daemon2011-04-28
| | | | | | | | | | | | | | - Fix ASL logging to reference the correct formatter (and then replace with a new formatter). - Format ASL messages to include information that would normally be present in the standard formatter. - Allow ASL writers to pass a facility string. - Pretty up the function names in all logging, better matching NSAssert() names (as one example). - Don't throw if a logging filehandle is closed (SIGPIPE). Random exceptions from logging is bad, m'kay? R=thomasvl,dmaclach APPROVED=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2010-06-02
| | | | | | | | | Cleans up builds of GTM on Snow Leopard with gcc 4.2. Cleans up iPhone configs Adds libgcov for Snow Leopard Fixes up some small bugs. R=thomasvl DELTA=2028 (972 added, 990 deleted, 66 changed)
* - turned off _debug framework support in tests since we now capture a lot moreGravatar thomasvl@gmail.com2009-01-09
| | | | | | | | | | | | in log validation. - Added GTM_SUPPORT_GC for controlling the inclusion of GC related code. - If you are using GTMUnitTestDevLog, it also tries to capture logs from NSAssert. - Added GTM_FOREACH_OBJECT/GTM_FOREACH_KEY that uses NSEnumerator and objectEnumerator/keyEnumerator on 10.4, but on 10.5+/iPhone uses FastEnumeration. - GTMNSWorkspace+Running gives a variety of ways of determining the attributes of running processes.
* - Added GTMNSMakeUncollectable for forcing objects to survive in a GC world.Gravatar thomasvl@gmail.com2008-08-12
| | | | | | | | | | | | | | | | | - Added GTMCFAutorelease to make the [GTMNSMakeCollectable(cfFoo) autorelease] simpler and clearer, it's now just GTMCFAutorelease(cfFoo), and works in both GC and non-GC world. - Added GTMIsGarbageCollectionEnabled to GTMGarbageCollection.h. See the note there for it's usage. - Disabled the unittests for things on top of NSAppleScript in a GC world since Apple has bugs and it can crash. See the unittest for a note about it. - GTMStackTrace now can figure out ObjC symbols. Downside it is now ObjC only. - GTMFourCharCode can now be used with NSAppleEventDescriptors easily. typeType, typeKeyword, typeApplSignature, and typeEnumerated all get turned into GTMFourCharCodes. - Fixed up crash in GTMLoggerRingBufferWriter when used with GC on. - Significant updates to GTMNSAppleScript+Handler allowing you to list all handlers and properties (including inherited) and cleans up several errors in how scripting was being handled.
* helps if I add the files before doing the commitGravatar thomasvl@gmail.com2008-07-21