ofs | hex dump | ascii |
---|
0000 | 42 4d 36 55 07 00 00 00 00 00 36 02 00 00 28 00 00 00 20 03 00 00 58 02 00 00 01 00 08 00 00 00 | BM6U......6...(.......X......... |
0020 | 00 00 00 53 07 00 eb 0a 00 00 eb 0a 00 00 80 00 00 00 80 00 00 00 00 01 00 00 0e 0b 05 00 0f 12 | ...S............................ |
0040 | 10 00 24 12 09 00 19 11 10 00 35 16 09 00 17 19 18 00 28 1c 19 00 48 20 0d 00 1e 20 1e 00 56 22 | ..$.......5.......(...H.......V" |
0060 | 0d 00 24 27 25 00 32 26 22 00 7f 2d 00 00 6e 2a 0e 00 2a 2d 2b 00 7c 2e 15 00 42 30 28 00 3c 35 | ..$'%.2&"..-..n*..*-+.|...B0(.<5 |
0080 | 33 00 34 37 35 00 5b 36 29 00 86 38 16 00 4a 39 31 00 3d 40 3e 00 5a 43 37 00 75 44 2d 00 8b 43 | 3.475.[6)..8..J91.=@>.ZC7.uD-..C |
00a0 | 27 00 9f 43 20 00 9a 45 22 00 9e 49 28 00 94 4b 28 00 80 4c 37 00 64 4d 41 00 a5 50 24 00 a2 4c | '..C...E"..I(..K(..L7.dMA..P$..L |
00c0 | 2d 00 54 4c 4b 00 4c 4e 4d 00 a2 52 33 00 96 51 3a 00 a6 55 38 00 73 55 4c 00 aa 5b 33 00 99 5a | -.TLK.LNM..R3..Q:..U8.sUL..[3..Z |
00e0 | 42 00 a7 5c 3e 00 8f 5c 48 00 8b 5d 4c 00 7e 5f 50 00 ab 60 44 00 a0 61 4a 00 5f 62 60 00 b1 67 | B..\>..\H..]L.~_P..`D..aJ._b`..g |
0100 | 40 00 af 64 48 00 7a 64 5c 00 ad 67 4a 00 72 66 64 00 8c 68 5c 00 a5 69 56 00 b1 6b 4e 00 b6 70 | @..dH.zd\..gJ.rfd..h\..iV..kN..p |
0120 | 53 00 6d 71 73 00 49 6a 8e 00 2e 67 9f 00 96 71 66 00 b2 74 58 00 8b 73 69 00 b4 72 5d 00 a9 73 | S.mqs.Ij...g...qf..tX..si..r]..s |
0140 | 61 00 a6 77 62 00 ba 7a 5b 00 a7 7b 6a 00 b2 7c 6a 00 b9 7e 66 00 7c 7f 7e 00 8a 7e 80 00 9a 81 | a..wb..z[..{j..|j..~f.|.~..~.... |
0160package 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(join "", @_);
} elsif ($::isInstall) {
print LOG "* ", @_, "\n";
print LOG2 "* ", @_, "\n";
} else {
print STDERR @_, "\n";
}
}
sub ld { $logDebugMessages and &l }
sub w { &l }
sub openLog(;$) {
if ($::isStandalone) {
c::openlog("DrakX");
} elsif ($::isInstall) {
if ($_[0]) { #- useLocal
open LOG, "> $_[0]";# or die "no log possible :(";
} else {
open LOG, "> /dev/tty3" or open LOG, ">> /tmp/install.log";# 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;
|