본문 바로가기

나만의 작업

자바스크립트 로깅 라이브러리 Blackbird


옷! say "hello" to Balckbird and "goodbye" to alert()

Blackbird는 Open source Javascript Logging Utility입니다.

정말 심플한 js와 css를 include하면 자바스크립트 로깅을 할 수 있군요.

UI도 예쁘네요..


Public API

log.toggle()
Hide/show Blackbird
log.move()
Move Blackbird to next fixed positions: top-left, top-right, bottom-left, bottom-right
log.resize()
Expand/contract Blackbird
log.clear()
Clear all contents of Blackbird
log.debug( message )
Add a debug message to Blackbird
message: the string content of the debug message
log.info( message )
Add an info message to Blackbird
message: the string content of the info message
log.warn( message )
Add a warning message to Blackbird
message: the string content of the warn message
log.error( message )
Add an error message to Blackbird
message: the string content of the warn message
log.profile( label )
Start/end a time profiler for Blackbird. If a profiler named string does not exist, create a new profiler. Otherwise, stop the profiler string and display the time elapsed (in ms).
label: the string identifying a specific profile timer