package logger import "os" func ExampleLogger() { logger := NewLogger("TAG") logger.Infoln("so awesome") // prints [TAG] so awesome logger.Infof("this %q is raw", "coin") // prints [TAG] this "coin" is raw } func ExampleLogSystem() { filename := "test.log" file, _ := os.OpenFile(filename, os.O_RDWR|os.O_CREATE, os.ModePerm) fileLog := NewStdLogSystem(file, 0, WarnLevel) AddLogSystem(fileLog) stdoutLog := NewStdLogSystem(os.Stdout, 0, WarnLevel) AddLogSystem(stdoutLog) NewLogger("TAG").Warnln("reactor meltdown") // writes to both logs } y'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
Commit message (Expand)AuthorAgeFilesLines
* De-pkg-comment.knu2003-02-216-6/+3
* De-pkg-comment.knu2003-02-2122-11/+11
* make it work with teTeX 2.0.1ijliao2003-02-211-7/+7
* set charset to Big5 in all newsgroupsleeym2003-02-191-2/+2
* install five Chinese Big5 TrueType fontsleeym2003-02-188-0/+138
* Update to 0.9.1.naddy2003-02-1522-1211/+48
* Remove redundant category 'editors' in slave ports.mbr2003-02-134-4/+4
* Convert COMMENT to COMMENTFILE until these ports can be converted.kris2003-02-106-6/+6
* Set NOPRECIOUSMAKEVARS to unbreak 'make readmes'kris2003-02-101-0/+1
* add Acrobat Reader 5 CJK font packsijliao2003-02-0611-15/+15
* Upgrade kde-i18n to 3.1. Note that the following modules did not get awill2003-01-298-48/+534
* These patches were merged into main stream source tree,leeym2003-01-236-70/+2
* add p5-Lingua-ZH-Numbers 0.03ijliao2003-01-226-0/+40
* add p5-Lingua-ZH-TaBE 0.03ijliao2003-01-226-0/+41
* update to big5con-0.92hleeym2003-01-2116-522/+18
* add zh-links: Links WWW Browser with Chinese Supportleeym2003-01-1911-0/+1093
* Add support for non-standard WRKDIRPREFIX, which is commonly seenclive2003-01-191-1/+2
* Upgrade port chinese/pine4 from 4.50 to 4.53edwin2003-01-162-3/+3
* Update to 0.1.7arved2003-01-164-14/+14
* 1. take wrong sig dashes as correct ones when quoting (especially in tw.*)leeym2003-01-151-1/+10
* Add chinput3, an GB2312, BIG5 input server.vanilla2003-01-146-0/+61
* Don't try to run ${PREFIX}/lib/mozilla/mozilla if it doesn't exist.fenner2003-01-141-1/+1
* upgrade and unbreak chinese/tin to 1.5.16leeym2003-01-128-94/+70
* upgrade to 1.0.3ijliao2003-01-042-10/+15
* add Arphic ttf fonts support for Adobe-GB1edwin2003-01-031-0/+2
* - generate fonts from chinese/arphicttf and x11-fonts/webfontsijliao2003-01-035-264/+384
* fix -current build erroredwin2003-01-032-1/+16
* upgrade to a "universal" versionijliao2003-01-035-9/+74
* Add a patch to fix crashing problemvanilla2003-01-024-7/+34
* o Chasing mail/mutt-devel upgrade.clive2003-01-022-7/+7
* maintainer provides new patch, so unbreak itijliao2003-01-012-5/+3
* - fix english font width problemijliao2002-12-231-0/+32
* only support i386ijliao2002-12-221-0/+1
* Let others maintain these two ports.keichii2002-12-221-1/+1
* due to ttfm module ghostscript6 change to gscjkijliao2002-12-228-39/+38
* Fix build on -currentdinoex2002-12-152-0/+24
* Marked port as broken until there is a language patch available foredwin2002-12-111-0/+2
* Fix a typo: s/CATEGORES/CATEGORIES/knu2002-12-091-1/+1
* Fix BROKEN.vanilla2002-12-037-69/+109
* BROKEN: Incorrect pkg-plistkris2002-12-021-0/+2
* After repo copy from graphics category, update all appropriatelioux2002-11-292-4/+4
* Remove unneed patch files.vanilla2002-11-285-390/+0
* fix build/install process on -stable and -currentijliao2002-11-281-3/+1
* 1: Upgrade to 0.2.1.vanilla2002-11-289-91/+102
* Fix build in -current.vanilla2002-11-2717-96/+326
* The variable is called USE_PERL5_BUILD, not USE_PERL_BUILDkris2002-11-261-1/+1
* Add USE_PERL_BUILDkris2002-11-261-0/+1
* Upgrade to 2.00vanilla2002-11-253-5/+7
* Maintainer update for chinese/dictd: fix build problemedwin2002-11-244-57/+69
* Maintainer update to version 4.50edwin2002-11-242-4/+13
* Remove maintainers with undeliverable email addresses.kris2002-11-231-1/+1
* mark BROKEN, we should update patch files.vanilla2002-11-211-0/+2
* Remove all netscape ports with a vulnerability of JRE.sada2002-11-1721-643/+0
* Move the check for Harness.pm from LIB_PERL to SITE_PERLedwin2002-11-161-1/+1
* minor fixes:leeym2002-11-113-18/+14
* Security update to 2.2.6; fixed a cross-site scripting bug.leeym2002-11-113-6/+7
* o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-1124-23/+12
* remove extra fileijliao2002-11-081-1/+4
* make it build againijliao2002-11-082-4/+4
* Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-0722-11/+22
* add cdict5 1.3ijliao2002-11-066-0/+132
* The community as a whole can maintain these better than I can at the moment.obrien2002-11-055-5/+6
* PERL -> REINPLACEedwin2002-11-044-5/+10
* PERL -> REINPLACEedwin2002-11-042-2/+4
* Don't remove a system directorykris2002-10-281-1/+0
* Fix build on -current (cope with removal of wait union, and removekris2002-10-264-0/+45
* Change main category to chinese so pkgdb doesn't get sick over a missingalane2002-10-166-6/+4
* 1. Removed comments from pkg-plist files per will's request.alane2002-10-116-6/+8
* upgrade to 1.0.1ijliao2002-10-083-5/+5
* Remove a obsoleted variable for cleanness.clive2002-10-011-1/+0
* Add a missing entry.clive2002-10-011-0/+1
* o Fix build on -CURRENT.clive2002-09-292-15/+4
* Add a proper dependency.clive2002-09-281-0/+2
* Remove the port.taoka2002-09-206-97/+0
* Deploy USE_GNOMENG infrastructurelioux2002-09-202-2/+4
* Add missing directorieskris2002-09-161-0/+2
* texas chainsaw kde2 massacrealane2002-09-111-1/+0
* kde2 massacre.alane2002-09-101-17/+0
* Turn over to ports@.obrien2002-09-082-2/+2
* Update for a new patchset, which has only different comments.clive2002-09-012-2/+2
* Unbreak this port.clive2002-09-013-17/+6
* Since the Big5<->GB mapping in iconv is simply brokenclive2002-08-302-2/+5
* BX takes space as server list seperator.clive2002-08-292-4/+4
* Distfile relocated.clive2002-08-271-1/+1
* Update to 3.0.3. Not much changed here: [1] i18n PKGNAMEs converted towill2002-08-2510-16/+20
* Fix MASTER_SITES.kevlo2002-08-231-1/+1
* BerkeleyDB cleanup - stage 3ade2002-08-232-2/+2
* BerkeleyDB cleanup - stage 2ade2002-08-234-3/+24
* Remove ghostscript6, which was deleted several weeks ago.kris2002-08-231-1/+0
* Applied this patch to ensure build smoothly onkevlo2002-08-212-1/+13
* change my email address to leeym@FreeBSD.orgleeym2002-08-191-1/+1
* Correctly add pkgname_suffix for chinese ports.mbr2002-08-124-2/+6
* Reroute dependency on defunct chinese/ghostscript6 port andade2002-08-102-2/+2
* Add dependency on big5 fonts.mbr2002-08-042-2/+4
* Rename openoffice dir to openoffice-zh_CN.mbr2002-08-043-2/+18
* Really bury patch-aa.clive2002-08-041-0/+0
* Add simplified Chinese support.clive2002-08-045-5/+30
* Upgrade to 3.5.1clive2002-08-044-5/+24
* Good-bye.clive2002-08-046-450/+0
* Remove useless ag14.tar.Zclive2002-08-044-36/+6
* New port: zh-cce.clive2002-08-048-0/+127
* New port: zh-xpdf. This port enables xpdf to read chinese-traditional pdf.clive2002-08-048-0/+65
* remove files/patch-aaclive2002-08-044-16/+688
* Use MASTERDIRmbr2002-08-031-1/+1
* Add font dependencymbr2002-08-031-0/+1
* Add the real trad chinese port.mbr2002-08-033-0/+31
* Uhh ohh, should have been "Simplified Chinese".mbr2002-08-031-1/+1
* Add chinese OO.org portmbr2002-08-032-0/+16
* 1. Changed the lib depends on gettext to a build depends. This will meanalane2002-08-034-8/+8
* Bump PORTREVISION. KDE is fragile enough in its dependencies; we don'talane2002-08-024-0/+4
* Chase shlib rev of devel/gettextade2002-08-026-6/+6
* Remove empty files.naddy2002-07-261-0/+0
* Upgrade to 1.3.vanilla2002-07-214-39/+3
* Add a patch for handle cedict.vanilla2002-07-203-2/+39
* add zh-tw-dictdijliao2002-07-194-0/+102
* use MASTER_SITE_SOURCEFORGEijliao2002-07-111-2/+2
* Fix MASTER_SITE_SUBDIR.will2002-07-104-4/+4
* upgrade to 16.6ijliao2002-07-092-10/+6
* Bump PORTREVISION along with its master port. (irc/bitchx)clive2002-07-091-1/+1
* For make(1) on RELENG_4.clive2002-07-091-1/+2
* Adjust this port slightly for its master port (currently irc/bitchx).clive2002-07-091-6/+7
* Fix a longstanding bug, due to bogus big5 encoding. (There is hi-byte,clive2002-07-071-11/+50
* Catch up with net/bind8.clive2002-07-051-3/+3
* Update to 3.0.2 -- full log available in ports/x11/kde3/Makefile,v 1.51.will2002-07-0512-180/+40
* Add GB2312 Supportijliao2002-07-053-0/+305
* Change master site to MASTER_SITE_LOCALperky2002-07-021-3/+2
* Updating my email address.perky2002-06-251-1/+1
* Distfile disappeared from sf.net site so maintainer will host thempat2002-06-221-3/+3
* Catch up with mail/mutt-devel.clive2002-06-172-9/+9
* Fix build on current.kris2002-06-161-0/+20
* Fix MASTER_SITES and use space after variable namepat2002-06-161-3/+2
* Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to thewill2002-06-1612-12/+136
* change ps fontijliao2002-06-063-7/+15
* upgrade to 1.0 releaseijliao2002-06-065-10/+3
* add gscjk moduleijliao2002-06-033-4/+768
* add metalist 2.2.5ijliao2002-05-298-0/+913
* Chasing news/tin upgrade.clive2002-05-262-15/+15
* upgrade to 1.0.0rc3ijliao2002-05-262-4/+5
* add zh-mplayer-fonts 0.5ijliao2002-05-256-0/+290
* add zh-gbfs 1.0ijliao2002-05-257-0/+123
* Don't hardcode /usr/ports/distfiles, use ${DISTDIR} instead.kris2002-05-242-11/+23
* BROKEN: Broken by upgrade to linux-netscape47-communicator 4.79kris2002-05-231-0/+2
* upgrade to 1.4ijliao2002-05-213-3/+5
* upgrade to 1.0.0rc2ijliao2002-05-187-39/+94
* - fix missing header file problem.sada2002-05-171-16/+7
* Removing empty files leftover from last commitkeichii2002-05-165-0/+0
* Wrong distinfo. This one is correctkeichii2002-05-161-1/+1
* Change maintainer, update mastersite, and update to 1.3keichii2002-05-163-14/+8
* Update to rxvt 2.7.8 and use ports/x11/rxvt as the master portkeichii2002-05-167-105/+8
* Committing update to chinese/ghostscript6 and chinese/moefonts-cid.keichii2002-05-164-4/+4
* add support for Adobe Systems Tech Note #5079 & #5080ijliao2002-05-113-8/+16
* Chasing print/ghostscript-gnu updateijliao2002-05-111-1/+1
* Chasing print/ghostscript-gnu update.clive2002-05-112-2/+2
* 1) Fix pkg-plist.clive2002-05-112-2/+2
* Update MASTER_SITESclive2002-05-117-8/+8
* In case tin links against libiconv now, teach tin to recognize BIG5clive2002-05-102-0/+12
* Add USE_XLIB and correct a LIB_DEPENDS bogon.kris2002-05-051-1/+3
* Chasing mail/mutt-devel upgrade.clive2002-05-042-7/+7
* Catch up irc/bitchx.clive2002-05-011-64/+24
* AbiWord change PREFIX to X11BASEijliao2002-04-251-1/+1
* dont hardcode python sitelibdir pathijliao2002-04-251-1/+1
* Please welcome Qt3/KDE3 to our ports tree. This includes work since thewill2002-04-2221-36/+1476
* no need in 1.3.1ijliao2002-04-202-21/+0
* xcinrc fixijliao2002-04-202-4/+10
* get TTFINFO_FONT_PSNAMEijliao2002-04-201-0/+141
* upgrade to 1.3.1ijliao2002-04-192-3/+3
* upgrade to 0.1.5ijliao2002-04-195-81/+35
* Forgot to put this file into Attic.clive2002-04-171-38/+0
* Upgrade to latest xcin25/libtabe suite.clive2002-04-1717-134/+215
* post gettext 0.11.1 patchijliao2002-04-151-3/+3
* upgrade to 0.1.4ijliao2002-04-158-55/+68
* Post gettext-0.11.1 fix.clive2002-04-152-2/+2
* Post gettext-0.11.1 fix.clive2002-04-151-0/+38
* gettext upgrade uber-patch (stage 3)ade2002-04-132-4/+4
* support HAVE_GGI_LIBijliao2002-04-092-1/+12
* add cwtex to chinese/Makefileijliao2002-04-07