summaryrefslogtreecommitdiffstats
path: root/perl-install/log.pm
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2002-07-23 11:21:56 +0000
committerMystery Man <unknown@mandriva.org>2002-07-23 11:21:56 +0000
commit0a94f3feb8d7841fe8212febcbbdac1073413e05 (patch)
tree09f4686118e32ec13377577bbbd0f08e8120836c /perl-install/log.pm
parent127a73d935d78af53d3dadd05d4636f6b717976d (diff)
downloaddrakx-backup-do-not-use-1_1_8_14mdk.tar
drakx-backup-do-not-use-1_1_8_14mdk.tar.gz
drakx-backup-do-not-use-1_1_8_14mdk.tar.bz2
drakx-backup-do-not-use-1_1_8_14mdk.tar.xz
drakx-backup-do-not-use-1_1_8_14mdk.zip
This commit was manufactured by cvs2svn to create tag 'V1_1_8_14mdk'.V1_1_8_14mdk
Diffstat (limited to 'perl-install/log.pm')
-rw-r--r--perl-install/log.pm58
1 files changed, 0 insertions, 58 deletions
diff --git a/perl-install/log.pm b/perl-install/log.pm
deleted file mode 100644
index 649ed30a0..000000000
--- a/perl-install/log.pm
+++ /dev/null
@@ -1,58 +0,0 @@
-package log; # $Id$
-
-use diagnostics;
-use strict;
-use c;
-
-
-#-#####################################################################################
-#- Globals
-#-#####################################################################################
-my $logOpen = 0;
-my $logDebugMessages = 0;
-
-
-#-######################################################################################
-#- Functions
-#-######################################################################################
-sub F() { *LOG }
-
-sub l {
- $logOpen or openLog();
- if ($::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]";# or die "no log possible :(";
- } else {
- open LOG, "> /dev/tty3";# or die "no log possible :(";
- }
- open LOG2, ">> /tmp/ddebug.log";# or die "no log possible :(";
- 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; }
-}
-
-#-######################################################################################
-#- Wonderful perl :(
-#-######################################################################################
-1;