gyokuro

A tiny framework for creating web apps in Ceylon


Logging

Before starting your application, it is a good idea to set up a logger, because gyokuro logs useful information during startup (especially when it scans packages for annotations). The preferred way do to this is to use ceylon.logging:

import ceylon.logging { ... }

shared void run() {
    addLogWriter(writeSimpleLog);
    defaultPriority = trace;
    
    ...
}

This will result in the following logs:

$ ceylon run gyokuro.demo.rest
    [1449317571409] TRACE Scanning members in package gyokuro.demo.rest
    [1449317571414] TRACE Scanning member SimpleRestController in package gyokuro.demo.rest
    [1449317571429] TRACE Binding function makeDuckTalk to path /rest/duck/talk
    ...

Next: application.