summaryrefslogtreecommitdiffstats
path: root/perl-install/log.pm
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
committerMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
commit8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch)
tree544a377d0ea57462110009fbbbfd14473390e2a1 /perl-install/log.pm
parentb5dc638815c772056e07cd013f5b1674900456d5 (diff)
downloaddrakx-backup-do-not-use-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar
drakx-backup-do-not-use-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.gz
drakx-backup-do-not-use-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.bz2
drakx-backup-do-not-use-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.xz
drakx-backup-do-not-use-8ea9beca90c410e12593fedfb6e741dbdf8795d0.zip
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'perl-install/log.pm')
-rw-r--r--perl-install/log.pm60
1 files changed, 0 insertions, 60 deletions
diff --git a/perl-install/log.pm b/perl-install/log.pm
deleted file mode 100644
index 3f281b5c6..000000000
--- a/perl-install/log.pm
+++ /dev/null
@@ -1,60 +0,0 @@
-package log; # $Id$
-
-use diagnostics;
-use strict;
-use vars qw(*LOG *LOG2);
-
-use c;
-
-
-#-#####################################################################################
-#- Globals
-#-#####################################################################################
-my $logOpen = 0;
-my $logDebugMessages = 0;
-
-#-######################################################################################
-#- Functions
-#-######################################################################################
-sub F() { *LOG }
-
-sub l {
- $logOpen or openLog();
- if ($::testing) {
- print STDERR @_, "\n";
- } elsif ($::isStandalone) {
- c::syslog(c::LOG_WARNING(), join("", @_));
- } elsif ($::isInstall) {
- print LOG "* ", @_, "\n";
- print LOG2 "* ", @_, "\n";
- } else {
- print STDERR @_, "\n";
- }
-}
-sub ld { $logDebugMessages and &l }
-sub w { &l }
-
-sub openLog(;$) {
- if ($::isInstall) {
- if ($_[0]) { #- useLocal
- open LOG, "> $_[0]"; #-#
- } else {
- open LOG, "> /dev/tty3"; #-#
- }
- open LOG2, ">> /tmp/ddebug.log"; #-#
- select((select(LOG), $| = 1)[0]);
- select((select(LOG2), $| = 1)[0]);
- }
- exists $ENV{DEBUG} and $logDebugMessages = 1;
- $logOpen = 1;
-}
-
-sub closeLog() {
- if ($::isStandalone) {
- c::closelog();
- } else { close LOG; close LOG2 }
-}
-
-sub explanations { c::syslog(c::LOG_INFO()|c::LOG_LOCAL1(), "@_") }
-
-1;