package log; # $Id$ use diagnostics; use strict; use c; my ($LOG, $LOG2); #-##################################################################################### #- Globals #-##################################################################################### #-###################################################################################### #- Functions #-###################################################################################### sub F() { $LOG } sub l { $LOG or openLog(); if ($::testing) { print STDERR @_, "\n"; } elsif ($LOG) { print $LOG "* ", @_, "\n"; print $LOG2 "* ", @_, "\n" if $LOG2; } elsif ($::isStandalone) { c::syslog(c::LOG_WARNING(), join("", @_)); } else { print STDERR @_, "\n"; } } sub openLog { my ($o_file) = @_; if ($o_file) { #- useLocal open $LOG, "> $o_file"; } elsif ($::isInstall) { open $LOG, "> /dev/tty3"; open $LOG2, ">> /tmp/ddebug.log"; } select((select($LOG), $| = 1)[0]) if $LOG; select((select($LOG2), $| = 1)[0]) if $LOG2; } sub closeLog() { if ($LOG) { close $LOG; close $LOG2; } elsif ($::isStandalone) { c::closelog(); } } sub explanations { if ($::isStandalone) { c::syslog(c::LOG_INFO()|c::LOG_LOCAL1(), "@_"); } else { l(@_); } } 1; Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
BranchCommit messageAuthorAge
masterAlso update install/NEWS for previous commit.Martin Whitaker2 weeks
user/jibz/aarch64fix(install): grub2-efi was not found using default_bootloader()Jybz8 months
distro/mga918.66Martin Whitaker16 months
user/pterjan/arm64fooPascal Terjan18 months
distro/mga8drakxtools/stage2: 18.45: update NEWSThomas Backlund4 years
distro/mga718.21.1Thomas Backlund5 years
distro/mga617.88.3Martin Whitaker6 years
topic/extlinuxbootloader: add cma=256M@512M for Raspberry Pi DRM/VC4Olivier Blin7 years
topic/switching_to_dnfperl-install/pkgs.pm: Port 'urpme' call to 'dnf remove' callNeal Gompa7 years
distro/mga5Fix the display of the clock in drakclock (mga#11776)Frédéric Buclin8 years
[...]
 
TagDownloadAuthorAge
18.68drakx-18.68.tar  drakx-18.68.tar.gz  drakx-18.68.tar.bz2  drakx-18.68.tar.xz  drakx-18.68.zip  Jani Välimaa7 months
18.67drakx-18.67.tar  drakx-18.67.tar.gz  drakx-18.67.tar.bz2  drakx-18.67.tar.xz  drakx-18.67.zip  Dan Fandrich11 months
drakx-installer-images-2.91drakx-installer-images-2.91.tar  drakx-installer-images-2.91.tar.gz  drakx-installer-images-2.91.tar.bz2  drakx-installer-images-2.91.tar.xz  drakx-installer-images-2.91.zip  Thomas Backlund15 months
18.66drakx-18.66.tar  drakx-18.66.tar.gz  drakx-18.66.tar.bz2  drakx-18.66.tar.xz  drakx-18.66.zip  Martin Whitaker16 months
2.90drakx-2.90.tar  drakx-2.90.tar.gz  drakx-2.90.tar.bz2  drakx-2.90.tar.xz  drakx-2.90.zip  Thomas Backlund16 months
18.64drakx-18.64.tar  drakx-18.64.tar.gz  drakx-18.64.tar.bz2  drakx-18.64.tar.xz  drakx-18.64.zip  Martin Whitaker17 months
18.63drakx-18.63.tar  drakx-18.63.tar.gz  drakx-18.63.tar.bz2  drakx-18.63.tar.xz  drakx-18.63.zip  Giuseppe Ghibò18 months
1.67drakx-1.67.tar  drakx-1.67.tar.gz  drakx-1.67.tar.bz2  drakx-1.67.tar.xz  drakx-1.67.zip  Martin Whitaker19 months
18.62drakx-18.62.tar  drakx-18.62.tar.gz  drakx-18.62.tar.bz2  drakx-18.62.tar.xz  drakx-18.62.zip  Martin Whitaker19 months
18.61drakx-18.61.tar  drakx-18.61.tar.gz  drakx-18.61.tar.bz2  drakx-18.61.tar.xz  drakx-18.61.zip  Martin Whitaker19 months
[...]
 
AgeCommit messageAuthorFilesLines
2004-02-20This commit was manufactured by cvs2svn to create tag 'V10_0_21mdk'.V10_0_21mdkMystery Man2066-263489/+0
2004-02-2010-0.21mdkThierry Vignaud1-1/+11
2004-02-19since no PCMCIA cards support link status notification, ifplugd shouldThierry Vignaud1-1/+3
2004-02-19updateThierry Vignaud1-15103/+17412
2004-02-19fix stringThierry Vignaud1-1/+1
2004-02-19*** empty log message ***Pascal Rigaux1-1/+40
2004-02-19use $ugtk2::current_window in place of @interactive::objects (which was unuse...Pascal Rigaux2-8/+9
2004-02-19UpdatedArkadiusz Lipiec1-14459/+16604
2004-02-19updated pot filePablo Saratxaga27-357468/+450095
2004-02-19updated pot filePablo Saratxaga