summaryrefslogtreecommitdiffstats
path: root/lib/puppet/log.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merging the code over from the oscar branch. I will now be doing all ↵luke2006-11-081-20/+29
| | | | | | development in the trunk again, except for larger changes, which will still get their own branch. This is a merge of the changes from revision 1826 to revision 1834. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1835 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #305 -- logs now reopen when Puppet restarts, and there is also now ↵luke2006-10-091-0/+5
| | | | | | an autoflush mechanism available so logs will flush to disk immediately. I also now trap USR2 and reopen logs when it is sent, so if you just want to reopen logs you do not have to restart the whole process. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1750 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the changes from the override-refactor branch. This is a ↵luke2006-10-041-4/+2
| | | | | | significant rewrite of the parser, but it has little affect on the rest of the code tree. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1726 980ebf18-57e1-0310-9a29-db15c13687c0
* Renaming logfacility to syslogfacility as recommended by lutter.luke2006-10-041-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1725 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding configurability to the syslog facility, using the "logfacility" ↵luke2006-10-041-1/+6
| | | | | | parameter. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1724 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #292 (A bug in tagmail that causes any tag other than 'all' to fail)luke2006-09-201-1/+2
| | | | | | | | | | | | | | | and #277 (tagmail report missing To: header). #292 was weird because the messages just didn't have the tags at all. The problem was that states didn't have tags, yet states were the source of nearly all messages. So, I added tags to the states, and included the state name in the tag list. Also, types were not including the type name in the tag list, so I added that. And, of course, a few unit tests to check it all. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1638 980ebf18-57e1-0310-9a29-db15c13687c0
* Using the "trace" configuration parameter to determine whether a stack trace ↵luke2006-09-151-1/+1
| | | | | | should be printed, rather than just using "debug". I added the param a little while ago and was using it internally in Puppet::DevError, but I just now went through the whole configuration and switched to using it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1613 980ebf18-57e1-0310-9a29-db15c13687c0
* Making some of the metaprogramming a bit more explicit and a bit easier to ↵luke2006-08-201-17/+10
| | | | | | | | manage. In the process, I have created multiple Util modules, only one of which is used for this current commit. The main work in this commit is that I created a single, common method for dynamically creating classes and moved all of the Class.new users to using this class. It handles a lot of the complexity for me, and most of the users have just a couple of lines of code, now, instead of tens. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1473 980ebf18-57e1-0310-9a29-db15c13687c0
* Another batch of bug fixes, this time focused on OS X patches. Looks like I ↵luke2006-07-221-1/+1
| | | | | | did not test on os x last time. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1422 980ebf18-57e1-0310-9a29-db15c13687c0
* Trying to merge metrics and reports. There is now a separate transaction ↵luke2006-06-301-3/+32
| | | | | | report class, and it works throughout the previously existing system. I will next go through trying to make a metric report that graphs the metrics in rrd. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1347 980ebf18-57e1-0310-9a29-db15c13687c0
* First commit of complete reporting support. The only existing report at ↵luke2006-06-291-0/+8
| | | | | | this point is the tagmail report. I expect reporting to get significantly modified from here, but it is a good start. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1339 980ebf18-57e1-0310-9a29-db15c13687c0
* Largely refactored how log destinations are handled, although it is not ↵luke2006-06-271-133/+252
| | | | | | exposed externally. Most of this work is related to handling a large number of small problems related to threading. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1315 980ebf18-57e1-0310-9a29-db15c13687c0
* Setting options and the facility for syslogluke2006-06-141-1/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1277 980ebf18-57e1-0310-9a29-db15c13687c0
* turning on output flushingluke2006-06-121-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1253 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding in all of the patches necessary to make a prototype rails interface ↵luke2006-04-281-2/+2
| | | | | | to puppet nodes work. The biggest change is that there is now a separate NetworkClient class for every Client subclass, because otherwise you get namespace collisions. Most everything other change is a relatively minor patch. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1145 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "list" class method to most types, and using it in the tests for ↵luke2006-04-201-0/+4
| | | | | | the pelement server to verify that objects can be copied using it. I expect that most package types other than apt/dpkg are not yet working with these tests. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1124 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixin #102. The syslog name is now either the name if the process (if that ↵luke2006-04-191-1/+3
| | | | | | name includes "puppet" in it) or "puppet-" and the name of the process. Also removing the "alert" test messages, since they result in a wall. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1118 980ebf18-57e1-0310-9a29-db15c13687c0
* adding -e ability to puppet executableluke2006-04-041-4/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1065 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #68. After tons and tons and tons of work, everything successfully ↵luke2006-03-021-1/+2
| | | | | | configures itself, and the --genmanifest argument should actually work. User and group creation will not necessarily work everywhere (in particular, Puppet uses dependencies to create the group first, but Fedora complains on user creation if the group already exists), but file and directory creation should. The only downside is that there is a decent amount of extra information printed on daemon startup, as the daemon checks its config; this could maybe be seen as a bonus, though, I guess. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@966 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, Puppet is now almost entirely capable of configuring itself. I have ↵luke2006-03-021-0/+2
| | | | | | not yet added the extra tests to puppetmasterd to make sure it can start as a normal user, and the executables still fail some simple tests because they are producing output when they start (I will get rid of the output), but overall things look pretty good. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@965 980ebf18-57e1-0310-9a29-db15c13687c0
* There is now full support for configuration files, and the entire system has ↵luke2006-02-071-2/+2
| | | | | | been modified to expect their new behaviour. I have not yet run the test across all test hosts, though. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@873 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some logging issuesluke2006-01-241-6/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@849 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying docs, and adding scheduling hooksluke2006-01-201-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@846 980ebf18-57e1-0310-9a29-db15c13687c0
* Converting transport format to YAML instead of Marshal, and caching the file ↵luke2006-01-121-2/+2
| | | | | | in a YAML format, also. This required a significant rework of both Transportable classes. Lastly, I am also now caching the list of classes in a class file in /etc/puppet. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@816 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging changes from the head of the rework1 branch, r 784luke2006-01-081-0/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@787 980ebf18-57e1-0310-9a29-db15c13687c0
* Undoing the merge that happened in 785luke2006-01-071-17/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@786 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging in refactoring from version 774 into version 784luke2006-01-071-0/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@785 980ebf18-57e1-0310-9a29-db15c13687c0
* Lots of refactoring, and added the capture_stderr methodluke2005-11-161-3/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@742 980ebf18-57e1-0310-9a29-db15c13687c0
* Further progress towards the next release. Lots of small bugs fixed, the ↵luke2005-11-011-14/+19
| | | | | | paths look much better now, and Transportable is much cleaner. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@740 980ebf18-57e1-0310-9a29-db15c13687c0
* Making paths work a little more intelligentlyluke2005-11-011-0/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@739 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixed merging of state values, but I have not yet solved merging of ↵luke2005-10-291-2/+2
| | | | | | parameter or metaparam values, since they are quite different. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@735 980ebf18-57e1-0310-9a29-db15c13687c0
* Protecting from bug in Syslog, and fixing some more log messagesluke2005-10-291-7/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@734 980ebf18-57e1-0310-9a29-db15c13687c0
* central logging is fully functional now, but it is painfully slow, so it is ↵luke2005-10-281-14/+14
| | | | | | disabled by default git-svn-id: https://reductivelabs.com/svn/puppet/trunk@733 980ebf18-57e1-0310-9a29-db15c13687c0
* Central logging now works, although there appear to be a few kinks to work out.luke2005-10-281-99/+158
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@732 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding logging methods to all Puppet::Element instances, and converting all ↵luke2005-10-261-10/+20
| | | | | | instance log statements to use those methods. Additionally modified logging to take advantage of this by including the path of the logging object in the output. Logs will still need some cleanup to avoid duplicate information. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@731 980ebf18-57e1-0310-9a29-db15c13687c0
* adding tags and path accessorsluke2005-10-261-2/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@730 980ebf18-57e1-0310-9a29-db15c13687c0
* switching log.rb to raise Puppet::DevError eventsluke2005-09-191-5/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@690 980ebf18-57e1-0310-9a29-db15c13687c0
* some small fixesluke2005-09-101-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@644 980ebf18-57e1-0310-9a29-db15c13687c0
* setting up http to log to a separate fileLuke Kanies2005-08-101-0/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@531 980ebf18-57e1-0310-9a29-db15c13687c0
* cleaning up the defaults system even moreLuke Kanies2005-08-021-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@486 980ebf18-57e1-0310-9a29-db15c13687c0
* making the console output slightly less redundantLuke Kanies2005-07-221-3/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@440 980ebf18-57e1-0310-9a29-db15c13687c0
* doing some refactoringLuke Kanies2005-07-121-8/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@369 980ebf18-57e1-0310-9a29-db15c13687c0
* swapping console colorsLuke Kanies2005-07-111-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@361 980ebf18-57e1-0310-9a29-db15c13687c0
* adding Puppet#recmkdir utility function, and making sure Log and Storage ↵Luke Kanies2005-07-111-3/+33
| | | | | | create their own files and directories as necessary git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@354 980ebf18-57e1-0310-9a29-db15c13687c0
* changing Log.destination to Log.destination=()Luke Kanies2005-07-101-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@339 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing debugging to severely reduce output but allow it when debugging a ↵Luke Kanies2005-06-291-1/+5
| | | | | | specific service git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@319 980ebf18-57e1-0310-9a29-db15c13687c0
* basic rpm stuff now worksLuke Kanies2005-06-291-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@317 980ebf18-57e1-0310-9a29-db15c13687c0
* metric testing and graphing now works in the library, although nothing has ↵Luke Kanies2005-06-291-4/+6
| | | | | | been done in the language git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@314 980ebf18-57e1-0310-9a29-db15c13687c0
* logging now exactly supports the list of levels that syslog supports, and ↵Luke Kanies2005-06-281-9/+106
| | | | | | multiple destinations (syslog, files, and console) are now supported git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@311 980ebf18-57e1-0310-9a29-db15c13687c0
* renaming message.rb to log.rbLuke Kanies2005-06-281-0/+62
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@310 980ebf18-57e1-0310-9a29-db15c13687c0