The paper presents a logical framework to model some aspects of contextuality; i.e., generating contexts in a multi-context setting. Following the existing work on extended logic programming and multi-agent systems, a contextual reasoning procedure for a particular class of multi-context systems, the law ones, is proposed based on Grice's maxims (1975), which in turn are used to support a larger set of contexts by combining contexts into compound structures, thus defining a logic of contexts. The notion of compound contexts reflects the beliefs, desires, intentions and obligations, among others, that depend on the problem, leading to a variety of dynamic context formations. In its applied form, the Portuguese Public Prosecution Service is considered, which is the state body entrusted with representing the state, bringing criminal cases to court, defending democratic legality, and any other interests that the law determines.